IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 25, 2009, 12:48:19 PM (17 years ago)
Author:
Paul Price
Message:

Adding quality flag to raw, chip, cam, warp, stack, diff product tables. Renaming '-code' flag in the ippTools to '-fault' (clearer meaning, reduces confusion between fault code and quality code).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ippTools/src/difftool.c

    r23506 r23532  
    485485    PXOPT_LOOKUP_S64(diff_id, config->args, "-diff_id", true, false); // required
    486486    PXOPT_LOOKUP_STR(skycell_id, config->args, "-skycell_id", true, false);
    487     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
    488     PXOPT_LOOKUP_STR(uri, config->args, "-uri", (code == 0), false);
    489     PXOPT_LOOKUP_STR(path_base, config->args, "-path_base", (code == 0), false);
     487    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
     488    PXOPT_LOOKUP_S16(quality, config->args, "-quality", false, false);
     489    PXOPT_LOOKUP_STR(uri, config->args, "-uri", (fault == 0), false);
     490    PXOPT_LOOKUP_STR(path_base, config->args, "-path_base", (fault == 0), false);
    490491
    491492    // optional
     
    540541                           hostname,
    541542                           good_frac,
    542                            code,
     543                           fault,
     544                           quality,
    543545                           magicked
    544546          )) {
     
    578580    PXOPT_COPY_S64(config->args, where,  "-diff_skyfile_id", "diffInputSkyfile.diff_skyfile_id", "==");
    579581    PXOPT_COPY_STR(config->args, where, "-tess_id", "diffSkyfile.tess_id", "==");
    580     PXOPT_COPY_S16(config->args, where, "-code", "diffSkyfile.fault", "==");
     582    PXOPT_COPY_S16(config->args, where, "-fault", "diffSkyfile.fault", "==");
    581583    PXOPT_COPY_S64(config->args, where, "-exp_id", "rawExp.exp_id", "==");
    582584    PXOPT_COPY_STR(config->args, where, "-exp_name", "rawExp.exp_name", "==");
     
    655657    PXOPT_COPY_S64(config->args, where,  "-diff_id", "diffSkyfile.diff_id", "==");
    656658    PXOPT_COPY_STR(config->args, where,  "-label", "diffRun.label", "==");
    657     PXOPT_COPY_S16(config->args, where, "-code",     "fault", "==");
     659    PXOPT_COPY_S16(config->args, where, "-fault",     "fault", "==");
     660    PXOPT_COPY_S16(config->args, where, "-quality",     "quality", "==");
    658661
    659662    if (!psDBTransaction(config->dbh)) {
     
    16621665    PS_ASSERT_PTR_NON_NULL(config, false);
    16631666
    1664     PXOPT_LOOKUP_S16(code, config->args, "-code", true, false);
     1667    PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false);
    16651668
    16661669    psMetadata *where = psMetadataAlloc();
    16671670    PXOPT_COPY_S64(config->args, where, "-diff_id",   "diff_id",   "==");
    16681671
    1669     if (!pxSetFaultCode(config->dbh, "diffSkyfile", where, code)) {
     1672    if (!pxSetFaultCode(config->dbh, "diffSkyfile", where, fault)) {
    16701673        psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag");
    16711674        psFree (where);
Note: See TracChangeset for help on using the changeset viewer.