IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 23, 2009, 12:17:32 PM (17 years ago)
Author:
eugene
Message:

fix camtool -definebyquery usage of the label selection; add comments to clarify the label source for other definebyquery functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/camtool.c

    r25851 r25935  
    109109    psMetadata *where = psMetadataAlloc();
    110110    pxcamGetSearchArgs (config, where);
    111     pxAddLabelSearchArgs (config, where, "-label", "camRun.label", "==");
    112     PXOPT_COPY_STR(config->args, where, "-reduction", "camRun.reduction", "==");
     111    pxAddLabelSearchArgs (config, where, "-label", "chipRun.label", "=="); // define using chipRun label
     112    PXOPT_COPY_STR(config->args, where, "-reduction", "chipRun.reduction", "==");
    113113
    114114    if (!psListLength(where->list) &&
     
    199199    }
    200200
    201     // loop over our list of camRun rows
     201    // loop over our list of chipRun rows
    202202    for (long i = 0; i < psArrayLength(output); i++) {
    203203        psMetadata *md = output->data[i];
    204204
    205         camRunRow *row = camRunObjectFromMetadata(md);
     205        chipRunRow *row = chipRunObjectFromMetadata(md);
    206206        if (!row) {
    207             psError(PS_ERR_UNKNOWN, false, "failed to convert metadata into camRun");
     207            psError(PS_ERR_UNKNOWN, false, "failed to convert metadata into chipRun");
    208208            psFree(output);
    209209            return false;
Note: See TracChangeset for help on using the changeset viewer.