Changeset 26567 for trunk/ippTools/share
- Timestamp:
- Jan 12, 2010, 2:07:51 PM (17 years ago)
- Location:
- trunk/ippTools/share
- Files:
-
- 16 edited
-
camtool_find_pendingexp.sql (modified) (1 diff)
-
camtool_queue_chip_id.sql (modified) (1 diff)
-
chiptool_change_exp_state.sql (modified) (1 diff)
-
chiptool_completely_processed_exp.sql (modified) (2 diffs)
-
difftool_change_run_state.sql (modified) (1 diff)
-
difftool_change_skyfile_data_state.sql (modified) (1 diff)
-
difftool_todiffskyfile.sql (modified) (1 diff)
-
disttool_pending_camera.sql (modified) (1 diff)
-
disttool_pending_chip.sql (modified) (1 diff)
-
disttool_pending_diff.sql (modified) (1 diff)
-
disttool_pending_warp.sql (modified) (1 diff)
-
warptool_change_run_state.sql (modified) (2 diffs)
-
warptool_change_skyfile_data_state.sql (modified) (1 diff)
-
warptool_finish_run.sql (modified) (1 diff)
-
warptool_finished_run_select.sql (modified) (1 diff)
-
warptool_towarped.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/camtool_find_pendingexp.sql
r23617 r26567 9 9 rawExp.camera, 10 10 rawExp.telescope, 11 rawExp.filelevel 11 rawExp.filelevel, 12 chipRun.magicked AS chip_magicked 12 13 FROM camRun 13 14 JOIN chipRun -
trunk/ippTools/share/camtool_queue_chip_id.sql
r25835 r26567 16 16 '%s', -- tess_id 17 17 '%s', -- end_stage 18 0,-- magicked19 '%s' -- note18 %lld, -- magicked 19 '%s' -- note 20 20 FROM chipRun 21 21 WHERE -
trunk/ippTools/share/chiptool_change_exp_state.sql
r19702 r26567 4 4 -- the chipProcessedImfile sub query 5 5 UPDATE chipRun 6 SET state = '%s' 6 JOIN rawExp using(exp_id) 7 SET chipRun.state = '%s' 8 -- set magicked hook %s 7 9 WHERE 8 10 chipRun.chip_id = %lld -
trunk/ippTools/share/chiptool_completely_processed_exp.sql
r25835 r26567 14 14 tess_id, 15 15 end_stage, 16 all_files_magicked as magicked,16 imfile_magicked as magicked, 17 17 note 18 18 FROM … … 21 21 rawImfile.class_id as rawimfile_class_id, 22 22 chipProcessedImfile.class_id, 23 SUM(!chipProcessedImfile.magicked) = 0 as all_files_magicked 23 -- XXX using chipProcessedImfile assumes that all imfile's have 24 -- the same magicked value if that isn't right then more than one 25 -- row will be returned. In practice this is the case but bugs could 26 -- cause it to not be true. 27 -- We could use rawExp.magicked but that would make it possible for 28 -- the chipRun to have a different magicked value than the imfiles 29 chipProcessedImfile.magicked AS imfile_magicked 24 30 FROM chipRun 25 31 JOIN rawImfile -
trunk/ippTools/share/difftool_change_run_state.sql
r25800 r26567 5 5 UPDATE diffRun 6 6 SET state = '%s' 7 -- set magicked hook %s 7 8 WHERE 8 9 diffRun.diff_id = %lld -
trunk/ippTools/share/difftool_change_skyfile_data_state.sql
r25800 r26567 5 5 SET 6 6 data_state = '%s' 7 -- magicked hook %s 7 8 WHERE 8 9 diff_id = %lld -
trunk/ippTools/share/difftool_todiffskyfile.sql
r24174 r26567 65 65 OR (diffRun.state = 'update' 66 66 AND diffSkyfile.fault = 0 67 AND diffSkyfile. quality = 0)67 AND diffSkyfile.data_state = 'cleaned') 68 68 ) 69 69 -- Ensure input warps are available -
trunk/ippTools/share/disttool_pending_camera.sql
r25838 r26567 30 30 AND distRun.stage = 'camera' 31 31 AND distComponent.dist_id IS NULL 32 AND ( distRun.clean OR (chipRun.magicked AND camRun.magicked) OR distRun.no_magic)32 AND (((chipRun.magicked > 0) AND (camRun.magicked > 0)) OR distRun.no_magic) 33 33 AND (camRun.state = 'full' OR (distRun.clean AND camRun.state = 'cleaned')) -
trunk/ippTools/share/disttool_pending_chip.sql
r25838 r26567 28 28 AND distRun.stage = 'chip' 29 29 AND distComponent.dist_id IS NULL 30 AND ( distRun.clean OR chipRun.magickedOR distRun.no_magic)30 AND ((chipRun.magicked > 0) OR distRun.no_magic) 31 31 AND (chipRun.state = 'full' OR (distRun.clean AND chipRun.state = 'cleaned')) -
trunk/ippTools/share/disttool_pending_diff.sql
r25838 r26567 36 36 AND distRun.stage = 'diff' 37 37 AND distComponent.dist_id IS NULL 38 AND ( distRun.clean OR diffRun.magickedOR distRun.no_magic)38 AND ((diffRun.magicked > 0) OR distRun.no_magic) 39 39 AND (diffRun.state = 'full' OR (distRun.clean AND diffRun.state = 'cleaned')) -
trunk/ippTools/share/disttool_pending_warp.sql
r25838 r26567 31 31 AND distRun.stage = 'warp' 32 32 AND distComponent.dist_id IS NULL 33 AND ( distRun.clean OR warpRun.magickedOR distRun.no_magic)33 AND ((warpRun.magicked > 0) OR distRun.no_magic) 34 34 AND (warpRun.state = 'full' OR (distRun.clean AND warpRun.state = 'cleaned')) -
trunk/ippTools/share/warptool_change_run_state.sql
r19521 r26567 4 4 -- the chipProcessedImfile sub query 5 5 UPDATE warpRun 6 SET state = '%s' 6 JOIN fakeRun USING(fake_id) 7 JOIN camRun USING(cam_id) 8 JOIN chipRun USING(chip_id) 9 SET warpRun.state = '%s' 10 -- set magicked hook %s 7 11 WHERE 8 12 warpRun.warp_id = %lld … … 12 16 WHERE 13 17 warpSkyfile.warp_id = warpRun.warp_id 14 AND data_state != '%s'18 AND warpSkyfile.data_state != '%s' 15 19 ) = 0 -
trunk/ippTools/share/warptool_change_skyfile_data_state.sql
r23418 r26567 1 1 -- handle changes in warpSkyfile.data_state. 2 -- Used for the modes to cleanedskyfile and topurgedskyfile3 -- args are new data_state, warp_id, skycell_id and current expected state for warpRun2 -- Used for the modes tofullskyfile, tocleanedskyfile and topurgedskyfile 3 -- args are new data_state, string for magic hook, warp_id, skycell_id and current expected state for warpRun 4 4 UPDATE warpSkyfile 5 JOIN warpRun USING(warp_id) 6 JOIN fakeRun USING(fake_id) 7 JOIN camRun USING(cam_id) 8 JOIN chipRun USING(chip_id) 5 9 SET 6 10 data_state = '%s' 11 -- set magicked hook %s 7 12 WHERE 8 13 warp_id = %lld -
trunk/ippTools/share/warptool_finish_run.sql
r23430 r26567 1 1 UPDATE warpRun 2 2 SET state = 'full', 3 magicked = % d3 magicked = %lld 4 4 WHERE warp_id = %lld 5 5 -
trunk/ippTools/share/warptool_finished_run_select.sql
r24043 r26567 8 8 warpSkyCellMap.warp_id as foo, 9 9 warpSkyfile.warp_id as bar, 10 SUM(!warpSkyfile.magicked) = 0as magicked10 warpSkyfile.magicked as magicked 11 11 FROM warpRun 12 12 JOIN warpSkyCellMap -
trunk/ippTools/share/warptool_towarped.sql
r24487 r26567 40 40 AND warpSkyfile.tess_id IS NULL) 41 41 OR (warpRun.state = 'update' 42 AND chipRun.magicked >= 0 43 AND warpSkyfile.fault = 0 42 44 AND warpSkyfile.data_state = 'cleaned') 43 45 )
Note:
See TracChangeset
for help on using the changeset viewer.
