IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31596


Ignore:
Timestamp:
Jun 1, 2011, 5:33:35 PM (15 years ago)
Author:
heather
Message:

addtool -definebyquery didn't do what we wanted with -filter and -stage
staticsky. It now does. The cam search things are only used on cam stage (not
stack or staticsky, where it doesn't make sense)

Location:
trunk/ippTools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/addtool_find_sky_id.sql

    r31375 r31596  
    33FROM
    44     staticskyResult
    5 join staticSkyRun using (sky_id)
    6 join staticSkyInput using (stack_id)
     5join staticskyRun using (sky_id)
     6join staticskyInput using(sky_id)
    77JOIN stackRun USING(stack_id)
    88
     
    1313          ) as foo
    1414     ON sky_id = added_sky_id
    15      AND stage = 'sky'
     15     AND stage = 'staticsky'
    1616     -- hook for qualifying the join on the previous_dvodb
    1717     AND %s
  • trunk/ippTools/share/addtool_find_sky_id_dvo.sql

    r31375 r31596  
    11SELECT staticskyRun.* FROM staticskyResult
    22JOIN staticskyRun USING(sky_id)
     3join staticskyInput using(sky_id)
     4JOIN stackRun USING(stack_id)
     5
    36WHERE staticskyRun.state = 'full' and staticskyResult.quality = 0
    47    AND sky_id NOT IN (SELECT sky_id
  • trunk/ippTools/src/addtool.c

    r31375 r31596  
    117117
    118118    psMetadata *where = psMetadataAlloc();
    119     pxcamGetSearchArgs (config, where);
     119    //  pxcamGetSearchArgs (config, where);
    120120    PXOPT_COPY_S64(config->args, where,  "-cam_id",    "camRun.cam_id", "==");
    121121    PXOPT_COPY_S64(config->args, where,  "-stack_id",    "stackRun.stack_id", "==");
     
    123123    PXOPT_LOOKUP_STR(stage,       config->args, "-stage", false, false);
    124124    if (strcmp(stage, "cam")== 0) {
    125 
     125      pxcamGetSearchArgs (config, where);
    126126    pxAddLabelSearchArgs (config, where, "-label",     "camRun.label", "=="); // define using camRun label
    127127    pxAddLabelSearchArgs (config, where, "-data_group","camRun.data_group", "=="); // define using camRun label
     128
    128129    PXOPT_COPY_STR(config->args, where,  "-reduction", "camRun.reduction", "==");
    129130    }
     
    133134    pxAddLabelSearchArgs (config, where, "-data_group","stackRun.data_group", "=="); // define using camRun label
    134135    PXOPT_COPY_STR(config->args, where,  "-reduction", "stackRun.reduction", "==");
     136    pxAddLabelSearchArgs (config, where, "-filter",     "stackRun.filter", "=="); // define using camRun label
    135137    }
    136138    if (strcmp(stage, "staticsky")== 0) {
     
    139141    pxAddLabelSearchArgs (config, where, "-data_group","staticskyRun.data_group", "=="); // define using camRun label
    140142    PXOPT_COPY_STR(config->args, where,  "-reduction", "staticskyyRun.reduction", "==");
     143    pxAddLabelSearchArgs (config, where, "-filter",     "stackRun.filter", "=="); // define using camRun label
    141144    }
    142145   
  • trunk/ippTools/src/addtoolConfig.c

    r31375 r31596  
    5656    psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-label", PS_META_DUPLICATE_OK, "search by camRun label", NULL);
    5757    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);
    5859    psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-reduction",          0, "search by camRun reduction class", NULL);
    5960    psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-destreaked",           0, "only queue destreaked runs", false);
Note: See TracChangeset for help on using the changeset viewer.