IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25702


Ignore:
Timestamp:
Oct 1, 2009, 6:24:30 AM (17 years ago)
Author:
bills
Message:

in chiptool -processedimfile allow selection by label and destreaked status.
Changed -magicked to search for specific value instead of 1 or zero

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r25324 r25702  
    605605    PXOPT_COPY_S64(config->args, where, "-magicked", "chipRun.magicked", "==");
    606606
     607    PXOPT_LOOKUP_U64(magicked, config->args, "-magicked", false, false);
     608    PXOPT_LOOKUP_BOOL(destreaked, config->args,     "-destreaked", false);
     609    PXOPT_LOOKUP_BOOL(not_destreaked, config->args, "-not_destreaked", false);
     610
    607611    if (!psListLength(where->list) &&
    608612        !psMetadataLookupBool(NULL, config->args, "-all")) {
     
    631635        // don't list faulted rows
    632636        psStringAppend(&query, " %s", "AND chipProcessedImfile.fault = 0");
     637    }
     638    if (not_destreaked) {
     639        if (destreaked) {
     640            psError(PXTOOLS_ERR_DATA, true, "providing -not_destreaked and -destreaked makes no sense");
     641            return false;
     642        }
     643        if (magicked) {
     644            psError(PXTOOLS_ERR_DATA, true, "providing -not_destreaked and -magicked makes no sense");
     645            return false;
     646        }
     647        psStringAppend(&query, " AND chipProcessedImfile.magicked = 0");
     648    }
     649    if (destreaked) {
     650        psStringAppend(&query, " AND chipProcessedImfile.magicked != 0");
    633651    }
    634652
  • trunk/ippTools/src/chiptoolConfig.c

    r25324 r25702  
    158158    psMetadataAddStr(processedimfileArgs,  PS_LIST_TAIL, "-reduction",          0, "search by reduction class", NULL);
    159159    psMetadataAddStr(processedimfileArgs,  PS_LIST_TAIL, "-label",  PS_META_DUPLICATE_OK, "search by chipRun label (LIKE comparison)", NULL);
    160     psMetadataAddBool(processedimfileArgs, PS_LIST_TAIL, "-magicked",  0,        "search by magicked status", false);
     160
     161    psMetadataAddBool(processedimfileArgs, PS_LIST_TAIL, "-destreaked",  0,      "search for destreaked images", false);
     162    psMetadataAddBool(processedimfileArgs, PS_LIST_TAIL, "-not_destreaked",  0,  "search for images that have not been destreaked", false);
     163    psMetadataAddS64(processedimfileArgs, PS_LIST_TAIL, "-magicked",  0,        "search by magicked value", 0);
    161164    psMetadataAddU64(processedimfileArgs,  PS_LIST_TAIL, "-limit",  0,           "limit result set to N items", 0);
    162165    psMetadataAddBool(processedimfileArgs, PS_LIST_TAIL, "-all",  0,            "list everything without search terms", false);
Note: See TracChangeset for help on using the changeset viewer.