IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31596 for trunk/ippTools/src


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/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.