IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16505


Ignore:
Timestamp:
Feb 15, 2008, 9:49:21 AM (18 years ago)
Author:
eugene
Message:

added -pretend mode

File:
1 edited

Legend:

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

    r16290 r16505  
    152152    PXOPT_LOOKUP_STR(end_stage, config->args, "-set_end_stage", false, false);
    153153
     154    PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false);
     155    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
     156
    154157    // find the exp_id of all the exposures that we want to queue up.
    155158    psString query = pxDataGet("chiptool_find_rawexp.sql");
     
    180183    if (!psArrayLength(output)) {
    181184        psTrace("chiptool", PS_LOG_INFO, "no rows found");
     185        psFree(output);
     186        return true;
     187    }
     188
     189    if (pretend) {
     190        // negative simple so the default is true
     191        for (int i = 0; i < output->n; i++) {
     192            psMetadata *md = output->data[i];
     193            psMetadataConfigPrint (stdout, md);
     194        }
     195//        if (!rawExpPrintObjects(stdout, output, !simple)) {
     196//            psError(PS_ERR_UNKNOWN, false, "failed to print array");
     197//            psFree(output);
     198//            return false;
     199//        }
    182200        psFree(output);
    183201        return true;
Note: See TracChangeset for help on using the changeset viewer.