Changeset 31596
- Timestamp:
- Jun 1, 2011, 5:33:35 PM (15 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 4 edited
-
share/addtool_find_sky_id.sql (modified) (2 diffs)
-
share/addtool_find_sky_id_dvo.sql (modified) (1 diff)
-
src/addtool.c (modified) (4 diffs)
-
src/addtoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/addtool_find_sky_id.sql
r31375 r31596 3 3 FROM 4 4 staticskyResult 5 join static SkyRun using (sky_id)6 join static SkyInput using (stack_id)5 join staticskyRun using (sky_id) 6 join staticskyInput using(sky_id) 7 7 JOIN stackRun USING(stack_id) 8 8 … … 13 13 ) as foo 14 14 ON sky_id = added_sky_id 15 AND stage = 's ky'15 AND stage = 'staticsky' 16 16 -- hook for qualifying the join on the previous_dvodb 17 17 AND %s -
trunk/ippTools/share/addtool_find_sky_id_dvo.sql
r31375 r31596 1 1 SELECT staticskyRun.* FROM staticskyResult 2 2 JOIN staticskyRun USING(sky_id) 3 join staticskyInput using(sky_id) 4 JOIN stackRun USING(stack_id) 5 3 6 WHERE staticskyRun.state = 'full' and staticskyResult.quality = 0 4 7 AND sky_id NOT IN (SELECT sky_id -
trunk/ippTools/src/addtool.c
r31375 r31596 117 117 118 118 psMetadata *where = psMetadataAlloc(); 119 pxcamGetSearchArgs (config, where);119 // pxcamGetSearchArgs (config, where); 120 120 PXOPT_COPY_S64(config->args, where, "-cam_id", "camRun.cam_id", "=="); 121 121 PXOPT_COPY_S64(config->args, where, "-stack_id", "stackRun.stack_id", "=="); … … 123 123 PXOPT_LOOKUP_STR(stage, config->args, "-stage", false, false); 124 124 if (strcmp(stage, "cam")== 0) { 125 125 pxcamGetSearchArgs (config, where); 126 126 pxAddLabelSearchArgs (config, where, "-label", "camRun.label", "=="); // define using camRun label 127 127 pxAddLabelSearchArgs (config, where, "-data_group","camRun.data_group", "=="); // define using camRun label 128 128 129 PXOPT_COPY_STR(config->args, where, "-reduction", "camRun.reduction", "=="); 129 130 } … … 133 134 pxAddLabelSearchArgs (config, where, "-data_group","stackRun.data_group", "=="); // define using camRun label 134 135 PXOPT_COPY_STR(config->args, where, "-reduction", "stackRun.reduction", "=="); 136 pxAddLabelSearchArgs (config, where, "-filter", "stackRun.filter", "=="); // define using camRun label 135 137 } 136 138 if (strcmp(stage, "staticsky")== 0) { … … 139 141 pxAddLabelSearchArgs (config, where, "-data_group","staticskyRun.data_group", "=="); // define using camRun label 140 142 PXOPT_COPY_STR(config->args, where, "-reduction", "staticskyyRun.reduction", "=="); 143 pxAddLabelSearchArgs (config, where, "-filter", "stackRun.filter", "=="); // define using camRun label 141 144 } 142 145 -
trunk/ippTools/src/addtoolConfig.c
r31375 r31596 56 56 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-label", PS_META_DUPLICATE_OK, "search by camRun label", NULL); 57 57 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-data_group", PS_META_DUPLICATE_OK, "search by camRun data_group", NULL); 58 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-filter", PS_META_DUPLICATE_OK, "search by filter", NULL); 58 59 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-reduction", 0, "search by camRun reduction class", NULL); 59 60 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-destreaked", 0, "only queue destreaked runs", false);
Note:
See TracChangeset
for help on using the changeset viewer.
