Changeset 12237
- Timestamp:
- Mar 5, 2007, 12:37:24 PM (19 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 1 added
- 9 edited
-
share/Makefile.am (modified) (1 diff)
-
share/camtool_find_pendingexp.sql (modified) (1 diff)
-
share/camtool_queue_chip_id.sql (modified) (1 diff)
-
share/warptool_tooverlap.sql (added)
-
src/camqueue.c (modified) (2 diffs)
-
src/camtool.c (modified) (3 diffs)
-
src/camtool.h (modified) (1 diff)
-
src/camtoolConfig.c (modified) (1 diff)
-
src/chiptool.c (modified) (2 diffs)
-
src/warptool.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/Makefile.am
r12189 r12237 16 16 regtool_pendingimfile.sql \ 17 17 regtool_processedexp.sql \ 18 regtool_processedimfile.sql 18 regtool_processedimfile.sql \ 19 warptool_tooverlap.sql -
trunk/ippTools/share/camtool_find_pendingexp.sql
r12215 r12237 7 7 rawExp.exp_id, 8 8 rawExp.camera, 9 rawExp.telescope, 10 rawExp.workdir 9 rawExp.telescope 11 10 FROM camPendingExp 12 11 JOIN chipProcessedExp -
trunk/ippTools/share/camtool_queue_chip_id.sql
r12188 r12237 5 5 0, -- cam_id 6 6 chip_id, -- chip_id 7 '%s', -- workdir 7 8 '%s', -- label 8 9 '%s', -- recipe -
trunk/ippTools/src/camqueue.c
r12188 r12237 28 28 bool camQueueChipID(pxConfig *config, 29 29 psS64 chip_id, 30 psString workdir, 30 31 psString label, 31 32 psString recipe, … … 50 51 // different on 32/64 51 52 if (!p_psDBRunQuery(config->dbh, query, 53 workdir ? workdir : "NULL", 52 54 label ? label : "NULL", 53 55 recipe ? recipe : "NULL", -
trunk/ippTools/src/camtool.c
r12229 r12237 171 171 172 172 bool status = false; 173 psString workdir = psMetadataLookupStr(&status, config->args, "-set_workdir"); 174 if (!status) { 175 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -set_workdir"); 176 return false; 177 } 178 173 179 psString label = psMetadataLookupStr(&status, config->args, "-set_label"); 174 180 if (!status) { … … 248 254 if (!camQueueChipID(config, 249 255 row->chip_id, 256 workdir ? workdir : row->workdir, 250 257 label ? label : row->label, 251 258 recipe ? recipe : row->recipe, … … 557 564 pendingRow->cam_id, 558 565 pendingRow->chip_id, 566 pendingRow->workdir, 559 567 pendingRow->label, 560 568 pendingRow->recipe, -
trunk/ippTools/src/camtool.h
r12200 r12237 40 40 bool camQueueChipID(pxConfig *config, 41 41 psS64 chip_id, 42 psString workdir, 42 43 psString label, 43 44 psString recipe, -
trunk/ippTools/src/camtoolConfig.c
r12200 r12237 90 90 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-object", 0, 91 91 "search by exposure object", NULL); 92 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_workdir", 0, 93 "define workdir", NULL); 92 94 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_label", 0, 93 95 "define label", NULL); -
trunk/ippTools/src/chiptool.c
r12232 r12237 795 795 if (!camQueueChipID(config, 796 796 processedExp->chip_id, 797 processedExp->workdir, 797 798 processedExp->label, 798 799 processedExp->recipe, … … 888 889 pendingExp->exp_tag, 889 890 pendingExp->guide_id, 891 pendingExp->workdir, 890 892 pendingExp->label, 891 893 pendingExp->recipe, -
trunk/ippTools/src/warptool.c
r12131 r12237 479 479 480 480 // find all rawImfiles matching the default query 481 psString query = psStringCopy( 482 "SELECT\n" 483 " warpRun.warp_id,\n" 484 " camProcessedExp.*,\n" 485 " rawExp.camera,\n" 486 " warpRun.workdir\n" 487 " FROM warpRun\n" 488 " JOIN warpInputExp\n" 489 " USING(warp_id)\n" 490 " JOIN camProcessedExp\n" 491 " ON warpInputExp.cam_id = camProcessedExp.cam_id\n" 492 " JOIN chipProcessedExp\n" 493 " ON camProcessedExp.chip_id = chipProcessedExp.chip_id" 494 " JOIN rawExp\n" 495 " ON chipProcessedExp.exp_tag = rawExp.exp_tag\n" 496 " LEFT JOIN warpSkyCellMap\n" 497 " ON warpInputExp.warp_id = warpSkyCellMap.warp_id\n" 498 " AND warpInputExp.cam_id = warpSkyCellMap.cam_id\n" 499 " WHERE\n" 500 " warpRun.state = 'run'\n" 501 " AND camProcessedExp.fault = 0\n" 502 " AND warpSkyCellMap.warp_id IS NULL\n" 503 " AND warpSkyCellMap.cam_id IS NULL\n" 504 ); 481 psString query = pxDataGet("warptool_tooverlap.sql"); 482 if (!query) { 483 psError(PXTOOLS_ERR_DATA, false, "failed to retreive SQL statement"); 484 return false; 485 } 505 486 506 487 if (config->where) {
Note:
See TracChangeset
for help on using the changeset viewer.
