Changeset 18659
- Timestamp:
- Jul 22, 2008, 9:10:30 AM (18 years ago)
- Location:
- branches/eam_branch_20080719/ippTools
- Files:
-
- 10 edited
-
notes.txt (modified) (2 diffs)
-
src/camtool.c (modified) (1 diff)
-
src/difftool.c (modified) (3 diffs)
-
src/faketool.c (modified) (1 diff)
-
src/pxcam.c (modified) (4 diffs)
-
src/pxfake.c (modified) (3 diffs)
-
src/pxtools.c (modified) (1 diff)
-
src/pxwarp.c (modified) (3 diffs)
-
src/stacktool.c (modified) (4 diffs)
-
src/warptool.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080719/ippTools/notes.txt
r18627 r18659 11 11 * difftool 12 12 * stacktool 13 * magictool14 13 * dettool processedimfile 15 14 * dettool processedexp … … 20 19 * dettool residimfile 21 20 * dettool residexp 21 22 * I am modifiying the tools to use the new states: new, full, goto_cleaned, etc. 23 I am NOT changing: regtool, pztool, magictool, flatcorr, pxregister, pstamptool 24 25 * for dettool, I have added a new field, 'data_state' to the 26 detRunSummary. My plan here is that a complete detRunIteration 27 is cleaned at once. I've added functions to all of the dettool 28 major modes to list pending entries to be cleaned and a function 29 to update the data_state when cleaning is done. 22 30 23 31 2008.07.11 EAM -
branches/eam_branch_20080719/ippTools/src/camtool.c
r18642 r18659 576 576 577 577 // since there is only one exp per 'run' set camRun.state = 'stop' 578 if (!pxcamRunSetState(config, row->cam_id, " stop")) {578 if (!pxcamRunSetState(config, row->cam_id, "full")) { 579 579 psError(PS_ERR_UNKNOWN, false, "failed to change camRun.state for cam_id: %" PRId64, row->cam_id); 580 580 psFree(row); -
branches/eam_branch_20080719/ippTools/src/difftool.c
r18643 r18659 265 265 266 266 if (count == 2) { 267 if (!setdiffRunState(config, diff_id, " run")) {267 if (!setdiffRunState(config, diff_id, "new")) { 268 268 if (!psDBRollback(config->dbh)) { 269 269 psError(PS_ERR_UNKNOWN, false, "database error"); … … 502 502 } 503 503 504 if (!setdiffRunState(config, diff_id, " stop")) {504 if (!setdiffRunState(config, diff_id, "full")) { 505 505 if (!psDBRollback(config->dbh)) { 506 506 psError(PS_ERR_UNKNOWN, false, "database error"); … … 636 636 637 637 // check that state is a valid string value 638 if (!( 639 (strncmp(state, "run", 4) == 0) 640 || (strncmp(state, "stop", 5) == 0) 641 || (strncmp(state, "reg", 4) == 0) 642 ) 643 ) { 644 psError(PS_ERR_UNKNOWN, false, 645 "invalid diffRun state: %s", state); 638 if (!pxIsValidState(state)) { 639 psError(PS_ERR_UNKNOWN, false, "invalid diffRun state: %s", state); 646 640 return false; 647 641 } -
branches/eam_branch_20080719/ippTools/src/faketool.c
r18642 r18659 1080 1080 1081 1081 fakeRunRow *fakeRun = fakeRunObjectFromMetadata(row); 1082 // set fakeRun.state to ' stop'1083 if (!pxfakeRunSetState(config, fakeRun->fake_id, " stop")) {1082 // set fakeRun.state to 'full' 1083 if (!pxfakeRunSetState(config, fakeRun->fake_id, "full")) { 1084 1084 psError(PS_ERR_UNKNOWN, false, "failed to change fakeRun.state for fake_id: %" PRId64, fakeRun->fake_id); 1085 1085 psFree(fakeRun); -
branches/eam_branch_20080719/ippTools/src/pxcam.c
r18622 r18659 35 35 36 36 // check that state is a valid string value 37 if (!( 38 (strncmp(state, "run", 4) == 0) 39 || (strncmp(state, "stop", 5) == 0) 40 || (strncmp(state, "reg", 4) == 0) 41 ) 42 ) { 37 if (!pxIsValidState(state)) { 43 38 psError(PS_ERR_UNKNOWN, false, 44 39 "invalid camRun state: %s", state); … … 63 58 64 59 // check that state is a valid string value 65 if (!( 66 (strncmp(state, "run", 4) == 0) 67 || (strncmp(state, "stop", 5) == 0) 68 || (strncmp(state, "reg", 4) == 0) 69 ) 70 ) { 60 if (!pxIsValidState(state)) { 71 61 psError(PS_ERR_UNKNOWN, false, 72 62 "invalid chipRun state: %s", state); … … 108 98 return true; 109 99 } 110 111 100 112 101 bool pxcamRunSetLabelByQuery(pxConfig *config, psMetadata *where, const char *label) … … 162 151 // different on 32/64 163 152 if (!p_psDBRunQuery(config->dbh, query, 164 " run", // state153 "new", // state 165 154 workdir ? workdir : "NULL", 166 155 "dirty", //workdir_state -
branches/eam_branch_20080719/ippTools/src/pxfake.c
r18622 r18659 35 35 36 36 // check that state is a valid string value 37 if (!( 38 (strncmp(state, "run", 4) == 0) 39 || (strncmp(state, "stop", 5) == 0) 40 || (strncmp(state, "reg", 4) == 0) 41 ) 42 ) { 37 if (!pxIsValidState(state)) { 43 38 psError(PS_ERR_UNKNOWN, false, 44 39 "invalid fakeRun state: %s", state); … … 63 58 64 59 // check that state is a valid string value 65 if (!( 66 (strncmp(state, "run", 4) == 0) 67 || (strncmp(state, "stop", 5) == 0) 68 || (strncmp(state, "reg", 4) == 0) 69 ) 70 ) { 60 if (!pxIsValidState(state)) { 71 61 psError(PS_ERR_UNKNOWN, false, 72 62 "invalid fakeRun state: %s", state); … … 164 154 // different on 32/64 165 155 if (!p_psDBRunQuery(config->dbh, query, 166 " run", // state156 "new", // state 167 157 workdir ? workdir : "NULL", 168 158 label ? label : "NULL", -
branches/eam_branch_20080719/ippTools/src/pxtools.c
r18622 r18659 29 29 { 30 30 PS_ASSERT_PTR_NON_NULL(state, false); 31 32 // XXX replace strncmp with strcmp 31 33 32 34 if (!((strncmp(state, "new", 4) == 0) 35 || (strncmp(state, "reg", 3) == 0) 33 36 || (strncmp(state, "full", 5) == 0) 34 37 || (strncmp(state, "goto_cleaned", 8) == 0) -
branches/eam_branch_20080719/ippTools/src/pxwarp.c
r18479 r18659 35 35 36 36 // check that state is a valid string value 37 if (!( 38 (strncmp(state, "run", 4) == 0) 39 || (strncmp(state, "stop", 5) == 0) 40 || (strncmp(state, "reg", 4) == 0) 41 ) 42 ) { 43 psError(PS_ERR_UNKNOWN, false, 44 "invalid warpRun state: %s", state); 37 if (!pxIsValidState(state)) { 38 psError(PS_ERR_UNKNOWN, false, "invalid warpRun state: %s", state); 45 39 return false; 46 40 } … … 63 57 64 58 // check that state is a valid string value 65 if (!( 66 (strncmp(state, "run", 4) == 0) 67 || (strncmp(state, "stop", 5) == 0) 68 || (strncmp(state, "reg", 4) == 0) 69 ) 70 ) { 71 psError(PS_ERR_UNKNOWN, false, 72 "invalid chipRun state: %s", state); 59 if (!pxIsValidState(state)) { 60 psError(PS_ERR_UNKNOWN, false, "invalid chipRun state: %s", state); 73 61 return false; 74 62 } … … 152 140 fake_id, 153 141 "warp", // mode 154 " run", // state142 "new", // state 155 143 workdir, 156 144 "dirty", // workdir_state -
branches/eam_branch_20080719/ippTools/src/stacktool.c
r18643 r18659 278 278 279 279 // create a new stackRun for this stack 280 stackRunRow *run = stackRunRowAlloc(0, "run", workdir, NULL, registered, skycell_id, tess_id, filter); 280 stackRunRow *run = stackRunRowAlloc( 281 0, // ID 282 "new", // state 283 workdir, 284 NULL, // workdir_state 285 registered, 286 skycell_id, 287 tess_id, 288 filter); 289 281 290 if (!stackRunInsertObject(config->dbh, run)) { 282 291 if (!psDBRollback(config->dbh)) { … … 363 372 } 364 373 365 stackRunRow *run = stackRunRowAlloc(0, "run", workdir, NULL, registered, skycell_id, tess_id, filter); 374 stackRunRow *run = stackRunRowAlloc( 375 0, // ID 376 "new", // state 377 workdir, 378 NULL, // workdir_state 379 registered, 380 skycell_id, 381 tess_id, 382 filter); 383 366 384 if (!run) { 367 385 psError(PS_ERR_UNKNOWN, false, "failed to alloc stackRun object"); … … 656 674 } 657 675 658 if (!setstackRunState(config, stack_id, " stop")) {676 if (!setstackRunState(config, stack_id, "full")) { 659 677 if (!psDBRollback(config->dbh)) { 660 678 psError(PS_ERR_UNKNOWN, false, "database error"); … … 788 806 789 807 // check that state is a valid string value 790 if (!( 791 (strncmp(state, "run", 4) == 0) 792 || (strncmp(state, "stop", 5) == 0) 793 || (strncmp(state, "reg", 4) == 0) 794 ) 795 ) { 796 psError(PS_ERR_UNKNOWN, false, 797 "invalid warpRun state: %s", state); 808 if (!pxIsValidState(state)) { 809 psError(PS_ERR_UNKNOWN, false, "invalid stackRun state: %s", state); 798 810 return false; 799 811 } -
branches/eam_branch_20080719/ippTools/src/warptool.c
r18642 r18659 137 137 fake_id, 138 138 mode, 139 " run", // state139 "new", // state 140 140 workdir, 141 141 "dirty", // workdir_state
Note:
See TracChangeset
for help on using the changeset viewer.
