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/dettool_residexp.c

    r19092 r23532  
    9595    PXOPT_LOOKUP_S32(iteration, config->args, "-iteration", false, false);
    9696    PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); // required
    97     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
    98     PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (code == 0), false); // Required if code == 0
     97    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
     98    PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (fault == 0), false); // Required if fault == 0
    9999    PXOPT_LOOKUP_F64(bg, config->args, "-bg", false, false);
    100100    PXOPT_LOOKUP_F64(bg_stdev, config->args, "-bg_stdev", false, false);
     
    124124
    125125    if (psListLength(where->list)) {
    126         psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    127         psStringAppend(&query, " WHERE %s", whereClause);
    128         psFree(whereClause);
     126        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
     127        psStringAppend(&query, " WHERE %s", whereClause);
     128        psFree(whereClause);
    129129    }
    130130    psFree(where);
     
    151151
    152152    if (!detResidExpInsert(
    153             config->dbh,
     153            config->dbh,
    154154            det_id,
    155155            iteration,
     
    174174            user_5,
    175175            path_base,
    176             "full",
     176            "full",
    177177            !reject,
    178             code
     178            fault
    179179        )) {
    180180        psError(PS_ERR_UNKNOWN, false, "database error");
     
    225225    if (reject) {
    226226        psStringAppend(&query, " %s", "AND detResidExp.accept != 0");
    227     } 
     227    }
    228228
    229229    // treat limit == 0 as "no limit"
     
    273273    PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "==");
    274274    PXOPT_COPY_S64(config->args, where, "-exp_id",    "exp_id", "==");
    275     PXOPT_COPY_S16(config->args, where, "-code",      "fault", "==");
     275    PXOPT_COPY_S16(config->args, where, "-fault",      "fault", "==");
    276276
    277277    psString query = pxDataGet("dettool_revertresidexp.sql");
     
    330330    PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", false, false);
    331331    if (data_state) {
    332         if (!isValidDataState (data_state)) return false;
     332        if (!isValidDataState (data_state)) return false;
    333333    }
    334334
Note: See TracChangeset for help on using the changeset viewer.