Changeset 14018 for trunk/ippTools/share
- Timestamp:
- Jul 5, 2007, 10:15:41 AM (19 years ago)
- Location:
- trunk/ippTools/share
- Files:
-
- 1 added
- 1 deleted
- 9 edited
-
camtool_find_chip_id.sql (added)
-
camtool_find_pendingexp.sql (modified) (2 diffs)
-
camtool_queue_chip_id.sql (modified) (1 diff)
-
chiptool_completely_processed_exp.sql (modified) (1 diff)
-
chiptool_find_unprocessed_imfile.pl (modified) (1 diff)
-
chiptool_pendingimfile.sql (modified) (1 diff)
-
chiptool_queuerawexp.sql (deleted)
-
chiptool_queuerawimfile.sql (modified) (1 diff)
-
regtool_find_unprocessed_exp.sql (modified) (1 diff)
-
regtool_find_unprocessed_imfile.sql (modified) (1 diff)
-
regtool_pendingexp.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/camtool_find_pendingexp.sql
r12259 r14018 3 3 -- "cleaner" to use the same query for both cases 4 4 SELECT 5 cam PendingExp.*,5 camRun.*, 6 6 rawExp.exp_tag, 7 7 rawExp.exp_id, … … 9 9 rawExp.telescope, 10 10 rawExp.filelevel 11 FROM camPendingExp 12 JOIN chipProcessedExp 11 FROM camRun 12 JOIN chipRun 13 USING(chip_id) 14 JOIN chipProcessedImfile 13 15 USING(chip_id) 14 16 JOIN rawExp 15 ON chipProcessed Exp.exp_tag = rawExp.exp_tag17 ON chipProcessedImfile.exp_tag = rawExp.exp_tag 16 18 LEFT JOIN camProcessedExp 17 ON cam PendingExp.cam_id = camProcessedExp.cam_id19 ON camRun.cam_id = camProcessedExp.cam_id 18 20 LEFT JOIN camMask 19 ON cam PendingExp.label = camMask.label21 ON camRun.label = camMask.label 20 22 WHERE 21 camProcessedExp.cam_id IS NULL 23 chipRun.state = 'stop' 24 AND camRun.state = 'run' 22 25 AND camMask.label IS NULL 26 AND camProcessedExp.cam_id IS NULL -
trunk/ippTools/share/camtool_queue_chip_id.sql
r12237 r14018 1 1 -- camtool only operates on exposures so we can safely queue more then one at a 2 2 -- time without worrying about losing the track of the generated cam_id 3 INSERT INTO cam PendingExp3 INSERT INTO camRun 4 4 SElECT 5 5 0, -- cam_id 6 6 chip_id, -- chip_id 7 '%s', -- state 7 8 '%s', -- workdir 9 '%s', -- workdir_state 8 10 '%s', -- label 9 '%s', -- re cipe11 '%s', -- reduction 10 12 '%s', -- expgroup 11 13 '%s' -- dvodb 12 FROM chip ProcessedExp14 FROM chipRun 13 15 WHERE 14 chipProcessedExp.chip_id = %lld 16 chipRun.state = 'stop' 17 AND chipRun.chip_id = %lld -
trunk/ippTools/share/chiptool_completely_processed_exp.sql
r13403 r14018 1 -- select * from chipPendingExp 2 -- where exp_tag is not in chipProcessedExp 3 -- where exp_tag is not in chipPendingImfile 4 -- where the number of entries in chipProccessedImfile matches the .imfiles 5 -- entry in rawExp 1 -- the output of this query must match the format of chipRun row 6 2 SELECT DISTINCT 7 chipPendingExp.*, 8 rawExp.imfiles, 9 chipProcessedImfile.class_id 10 FROM chipPendingExp 11 JOIN rawExp 12 ON chipPendingExp.exp_tag = rawExp.exp_tag 13 LEFT JOIN chipProcessedExp 14 ON chipPendingExp.chip_id = chipProcessedExp.chip_id 15 LEFT JOIN chipPendingImfile 16 ON chipPendingExp.chip_id = chipPendingImfile.chip_id 17 LEFT JOIN chipProcessedImfile 18 ON chipPendingExp.chip_id = chipProcessedImfile.chip_id 19 WHERE 20 chipProcessedExp.chip_id IS NULL 21 AND chipPendingImfile.chip_id IS NULL 22 AND chipProcessedImfile.chip_id IS NOT NULL 23 AND chipProcessedImfile.fault = 0 24 GROUP BY 25 chipPendingExp.chip_id 26 HAVING rawExp.imfiles = COUNT(chipProcessedImfile.class_id) 3 chip_id, 4 state, 5 workdir, 6 workdir_state, 7 label, 8 reduction, 9 expgroup, 10 dvodb 11 FROM 12 (SELECT 13 chipRun.*, 14 rawExp.imfiles, 15 chipProcessedImfile.class_id 16 FROM chipRun 17 JOIN chipInputImfile 18 USING(chip_id) 19 JOIN rawExp 20 ON chipInputImfile.exp_tag = rawExp.exp_tag 21 JOIN chipProcessedImfile 22 ON chipInputImfile.chip_id = chipProcessedImfile.chip_id 23 AND chipInputImfile.exp_tag = chipProcessedImfile.exp_tag 24 AND chipInputImfile.class_id = chipProcessedImfile.class_id 25 WHERE 26 chipRun.state = 'run' 27 AND chipProcessedImfile.fault = 0 28 GROUP BY 29 chipInputImfile.chip_id, 30 chipInputImfile.exp_tag 31 HAVING rawExp.imfiles = COUNT(chipProcessedImfile.class_id)) as Foo -
trunk/ippTools/share/chiptool_find_unprocessed_imfile.pl
r12174 r14018 1 1 SELECT DISTINCT 2 chip PendingImfile.*3 FROM chip PendingImfile2 chipInputImfile.* 3 FROM chipInputImfile 4 4 LEFT JOIN chipProcessedImfile 5 5 USING(chip_id, class_id) -
trunk/ippTools/share/chiptool_pendingimfile.sql
r12259 r14018 1 1 SELECT 2 chipPendingExp.*, 3 chipPendingImfile.class_id, 4 chipPendingImfile.uri, 2 chipRun.*, 3 chipInputImfile.exp_tag, 4 chipInputImfile.class_id, 5 rawImfile.uri, 5 6 rawExp.exp_id, 6 7 rawExp.camera, 7 8 rawExp.telescope, 8 9 rawExp.filelevel 9 FROM chip PendingImfile10 JOIN chip PendingExp10 FROM chipRun 11 JOIN chipInputImfile 11 12 USING(chip_id) 13 LEFT JOIN chipProcessedImfile 14 ON chipInputImfile.chip_id = chipProcessedImfile.chip_id 15 AND chipInputImfile.exp_tag = chipProcessedImfile.exp_tag 16 AND chipInputImfile.class_id = chipProcessedImfile.class_id 17 JOIN rawImfile 18 ON chipInputImfile.exp_tag = rawImfile.exp_tag 19 AND chipInputImfile.class_id = rawImfile.class_id 12 20 JOIN rawExp 13 ON chipPendingExp.exp_tag = rawExp.exp_tag21 ON rawImfile.exp_tag = rawExp.exp_tag 14 22 LEFT JOIN chipMask 15 ON chip PendingExp.label = chipMask.label23 ON chipRun.label = chipMask.label 16 24 WHERE 17 chipMask.label IS NULL 25 chipRun.state = 'run' 26 AND chipProcessedImfile.chip_id IS NULL 27 AND chipProcessedImfile.exp_tag IS NULL 28 AND chipProcessedImfile.class_id IS NULL 29 AND chipMask.label IS NULL -
trunk/ippTools/share/chiptool_queuerawimfile.sql
r12174 r14018 1 INSERT INTO chip PendingImfile1 INSERT INTO chipInputImfile 2 2 SELECT 3 chipPendingExp.chip_id,4 rawImfile. class_id,5 rawImfile. uri6 FROM chipPendingExp7 JOIN rawImfile3 LAST_INSERT_ID(), 4 rawImfile.exp_tag, 5 rawImfile.class_id 6 FROM rawImfile 7 JOIN newExp 8 8 USING(exp_tag) 9 9 WHERE 10 10 rawImfile.fault = 0 11 AND chipPendingExp.chip_id = LAST_INSERT_ID() 11 AND newExp.state = 'stop' 12 AND rawImfile.exp_tag = '%s' 13 -
trunk/ippTools/share/regtool_find_unprocessed_exp.sql
r12086 r14018 1 SELECT 2 newExp.* 3 FROM newExp 4 LEFT JOIN newImfile 5 USING(exp_tag) 6 LEFT JOIN rawExp 7 USING(exp_tag) 1 SELECT DISTINCT * FROM 2 (SELECT 3 newExp.* 4 FROM newExp 5 JOIN newImfile 6 USING(exp_tag) 7 LEFT JOIN rawExp 8 USING(exp_tag) 9 WHERE 10 newExp.state = 'run' 11 AND rawExp.exp_tag IS NULL 12 AND newExp.imfiles = 13 (SELECT COUNT(exp_tag) FROM rawImfile 14 WHERE rawImfile.exp_tag = newExp.exp_tag)) as Foo 8 15 WHERE 9 newExp.exp_tag IS NOT NULL 10 AND newImfile.exp_tag IS NULL 11 AND rawExp.exp_tag IS NULL 12 AND newExp.imfiles = 13 (SELECT COUNT(exp_tag) FROM rawImfile 14 WHERE rawImfile.exp_tag = newExp.exp_tag) 15 AND newExp.exp_tag = '%s' 16 exp_tag = '%s' -
trunk/ippTools/share/regtool_find_unprocessed_imfile.sql
r12086 r14018 1 SELECT 2 * 3 FROM 4 (SELECT newImfile.* FROM newImfile 5 LEFT JOIN newExp USING(exp_tag) 6 LEFT JOIN rawExp USING(exp_tag) 7 WHERE newExp.exp_tag IS NOT NULL 1 SELECT DISTINCT * FROM 2 (SELECT 3 newImfile.* 4 FROM newImfile 5 JOIN newExp 6 USING(exp_tag) 7 LEFT JOIN rawExp 8 USING(exp_tag) 9 WHERE 10 newExp.state = 'run' 8 11 AND rawExp.exp_tag IS NULL) as Foo -
trunk/ippTools/share/regtool_pendingexp.sql
r12086 r14018 2 2 newExp.* 3 3 FROM newExp 4 LEFTJOIN newImfile4 JOIN newImfile 5 5 USING(exp_tag) 6 6 LEFT JOIN rawExp 7 7 USING(exp_tag) 8 8 WHERE 9 new Imfile.exp_tag IS NULL9 newExp.state = 'run' 10 10 AND rawExp.exp_tag IS NULL 11 11 AND newExp.imfiles =
Note:
See TracChangeset
for help on using the changeset viewer.
