Changeset 30102 for branches/eam_branches/ipp-20101205/ippTools/share
- Timestamp:
- Dec 17, 2010, 10:05:43 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20101205/ippTools/share
- Files:
-
- 7 edited
- 2 copied
-
Makefile.am (modified) (2 diffs)
-
camtool_find_pendingimfile.sql (modified) (1 prop)
-
chiptool_find_rawexp.sql (modified) (1 diff)
-
pubtool_definerun.sql (modified) (4 diffs)
-
pubtool_pending.sql (modified) (3 diffs)
-
pxadmin_create_tables.sql (modified) (3 diffs, 1 prop)
-
regtool_checkburntoolimfile.sql (copied) (copied from trunk/ippTools/share/regtool_checkburntoolimfile.sql )
-
regtool_pendingburntoolimfile.sql (copied) (copied from trunk/ippTools/share/regtool_pendingburntoolimfile.sql )
-
regtool_pendingexp.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/ippTools/share/Makefile.am
r29717 r30102 316 316 receivetool_revert.sql \ 317 317 receivetool_toadvance.sql \ 318 regtool_checkburntoolimfile.sql \ 318 319 regtool_create_dup_table.sql \ 319 320 regtool_export_exp.sql \ … … 331 332 regtool_updatebyquery.sql \ 332 333 regtool_updatebyqueryimfile.sql \ 334 regtool_pendingburntoolimfile.sql \ 333 335 stacktool_associationdefine_select.sql \ 334 336 stacktool_definebyquery_insert.sql \ -
branches/eam_branches/ipp-20101205/ippTools/share/camtool_find_pendingimfile.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20101205/ippTools/share/chiptool_find_rawexp.sql
r23917 r30102 1 1 -- this query is used to find potental rawExps to be queued for chiptool 2 2 -- processeing 3 SELECT 3 SELECT DISTINCT 4 4 rawExp.*, 5 5 newExp.label 6 6 FROM rawExp 7 7 JOIN newExp using (exp_id) 8 LEFT JOIN chipRun USING (exp_id) 8 9 WHERE 9 10 rawExp.fault = 0 -
branches/eam_branches/ipp-20101205/ippTools/share/pubtool_definerun.sql
r28428 r30102 3 3 client_id, 4 4 stage_id, 5 src_label 5 src_label, 6 output_format 6 7 FROM ( 7 8 -- Get diffs to publish … … 9 10 client_id, 10 11 diff_id AS stage_id, 11 diffRun.label AS src_label 12 diffRun.label AS src_label, 13 output_format 12 14 FROM publishClient 13 15 JOIN diffRun … … 28 30 client_id, 29 31 cam_id AS stage_id, 30 camRun.label AS src_label 32 camRun.label AS src_label, 33 output_format 31 34 FROM publishClient 32 35 JOIN camRun … … 43 46 client_id, 44 47 diff_phot_id AS stage_id, 45 diffPhotRun.label AS src_label 48 diffPhotRun.label AS src_label, 49 output_format 46 50 FROM publishClient 47 51 JOIN diffPhotRun -
branches/eam_branches/ipp-20101205/ippTools/share/pubtool_pending.sql
r28491 r30102 9 9 publishClient.stage, 10 10 publishClient.workdir, 11 publishClient.output_format, 11 12 diffRun.diff_id AS stage_id, 12 13 rawExp.camera, … … 35 36 publishClient.stage, 36 37 publishClient.workdir, 38 publishClient.output_format, 37 39 camRun.cam_id AS stage_id, 38 40 rawExp.camera, … … 56 58 publishClient.stage, 57 59 publishClient.workdir, 60 publishClient.output_format, 58 61 diffPhotRun.diff_phot_id AS stage_id, 59 62 rawExp.camera, -
branches/eam_branches/ipp-20101205/ippTools/share/pxadmin_create_tables.sql
- Property svn:mergeinfo changed
/branches/czw_branch/20101203/ippTools/share/pxadmin_create_tables.sql (added) merged: 29965,29982
r29923 r30102 9 9 uri VARCHAR(255), 10 10 epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 11 use_compress SMALLINT, 11 12 PRIMARY KEY(camera, telescope) 12 13 ) ENGINE=innodb DEFAULT CHARSET=latin1; … … 251 252 md5sum VARCHAR(32), 252 253 burntool_state SMALLINT, 254 video_cells TINYINT DEFAULT 0, 253 255 PRIMARY KEY(exp_id, class_id), 254 256 KEY(tmp_class_id), … … 1643 1645 workdir VARCHAR(255) NOT NULL, -- working directory 1644 1646 comment VARCHAR(255), -- for human memory 1645 PRIMARY KEY(client_id) 1647 name varchar(64) default NULL, -- unique client_id verbose identifier 1648 output_format SMALLINT NOT NULL default 1, -- format output versioning 1649 PRIMARY KEY(client_id), 1650 UNIQUE KEY name (name) 1646 1651 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1647 1652 - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20101205/ippTools/share/regtool_pendingexp.sql
r20759 r30102 1 1 SELECT DISTINCT 2 exp_id, 3 tmp_exp_name, 4 tmp_camera, 5 tmp_telescope, 6 state, 7 workdir, 8 workdir_state, 9 reduction, 10 dvodb, 11 tess_id, 12 end_stage, 13 label, 14 camera, 15 filter, 16 obs_mode, 17 obs_group, 18 epoch, 19 dateobs 20 FROM 21 (SELECT 22 newExp.*, 23 newImfile.tmp_class_id, 24 rawImfile.tmp_class_id as raw_tmp_class_id, 25 rawImfile.camera, 26 rawImfile.filter, 27 rawImfile.dateobs, 28 rawImfile.obs_mode, 29 rawImfile.obs_group 30 FROM newExp 31 JOIN newImfile 32 USING(exp_id) 33 LEFT JOIN rawExp 34 USING(exp_id) 35 LEFT JOIN rawImfile 36 ON newImfile.exp_id = rawImfile.exp_id 37 AND newImfile.tmp_class_id = rawImfile.tmp_class_id 38 WHERE 39 newExp.state = 'run' 40 AND rawExp.exp_id IS NULL 41 -- where hook %s 42 GROUP BY 43 newExp.exp_id 44 HAVING 45 COUNT(newImfile.tmp_class_id) = COUNT(rawImfile.tmp_class_id) 46 AND SUM(rawImfile.fault) = 0 2 exp_id, 3 tmp_exp_name, 4 tmp_camera, 5 tmp_telescope, 6 state, 7 workdir, 8 workdir_state, 9 reduction, 10 dvodb, 11 tess_id, 12 end_stage, 13 label, 14 camera, 15 filter, 16 obs_mode, 17 obs_group, 18 epoch, 19 dateobs 20 FROM 21 ( 22 select DISTINCT * from 23 ( 24 select newExp.*,count(newImfile.tmp_class_id) AS new_count 25 from newExp 26 LEFT JOIN newImfile USING (exp_id) 27 LEFT JOIN rawExp USING (exp_id) 28 where 29 newExp.state = 'run' AND rawExp.exp_id IS NULL 30 GROUP BY newExp.exp_id 31 ) AS NEWEXPOSURES 32 JOIN 33 ( 34 select DISTINCT newExp.exp_id, 35 rawImfile.camera, 36 rawImfile.filter, 37 rawImfile.dateobs, 38 rawImfile.obs_mode, 39 rawImfile.obs_group, 40 count(rawImfile.tmp_class_id) AS raw_count 41 from newExp 42 LEFT JOIN rawExp USING (exp_id) 43 LEFT JOIN rawImfile USING (exp_id) 44 where 45 newExp.state = 'run' AND rawExp.exp_id IS NULL 46 AND rawImfile.data_state = 'full' 47 -- where hook %s 48 GROUP BY newExp.exp_id 49 HAVING SUM(rawImfile.fault) = 0 50 ) AS RAWEXPOSURES 51 USING (exp_id) 52 WHERE raw_count = new_count 53 ) AS Foo 47 54 -- limit hook %s 48 ) as Foo
Note:
See TracChangeset
for help on using the changeset viewer.
