IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2009, 2:51:37 PM (17 years ago)
Author:
Paul Price
Message:

Merging in branches/pap/ from r23685. Some conflicts, most notably in ippTools, but these resolved fairly simply. Only question mark is on regtool reversion, but I think I got it right. Everything builds fine.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippTools/src/dettool_detrunsummary.c

    r21402 r23688  
    101101
    102102    // default values
    103     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
     103    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
    104104    PXOPT_LOOKUP_BOOL(accept, config->args, "-accept", false);
    105105
     
    107107            det_id,
    108108            iteration,
    109             "full",
     109            "full",
    110110            bg,
    111111            bg_stdev,
    112112            bg_mean_stdev,
    113113            accept,
    114             code
     114            fault
    115115        );
    116116}
     
    120120{
    121121    PS_ASSERT_PTR_NON_NULL(config, false);
    122    
     122
    123123    // build a query to search by det_id, iteration, exp_id
    124124    psMetadata *where = psMetadataAlloc();
     
    129129    PXOPT_LOOKUP_BOOL(again, config->args, "-again", false);
    130130
    131     // The values supplied as arguments on the command (eg, -bg) are parsed 
    132     // by mdToDetRunSummary below. 
     131    // The values supplied as arguments on the command (eg, -bg) are parsed
     132    // by mdToDetRunSummary below.
    133133    // XXX why is there ever more than one?
    134134
     
    141141    if (psListLength(where->list)) {
    142142        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    143         psStringAppend(&query, " WHERE %s", whereClause);
    144         psFree(whereClause);
     143        psStringAppend(&query, " WHERE %s", whereClause);
     144        psFree(whereClause);
    145145    }
    146146    psFree(where);
     
    199199    psFree(output);
    200200
    201     // XXX this logic does not deal with the case of -code being set
    202     // XXX it should be an error for -again and -code to both be set
     201    // XXX this logic does not deal with the case of -fault being set
     202    // XXX it should be an error for -again and -fault to both be set
    203203    if (again) {
    204204        if (!startNewIteration(config, det_id)) {
     
    306306    PXOPT_COPY_S64(config->args, where, "-det_id",    "det_id", "==");
    307307    PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "==");
    308     PXOPT_COPY_STR(config->args, where, "-code",      "fault", "==");
     308    PXOPT_COPY_STR(config->args, where, "-fault",      "fault", "==");
    309309
    310310    psString query = pxDataGet("dettool_revertdetrunsummary.sql");
     
    340340{
    341341    PS_ASSERT_PTR_NON_NULL(config, false);
    342    
     342
    343343    PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); // required
    344344    PXOPT_LOOKUP_BOOL(accept, config->args, "-accept", false);
     
    355355    }
    356356
    357     char *query = "UPDATE detRunSummary SET accept = %d WHERE det_id = %"PRId64; 
     357    char *query = "UPDATE detRunSummary SET accept = %d WHERE det_id = %"PRId64;
    358358    if (!p_psDBRunQueryF(config->dbh, query, accept, det_id)) {
    359359        psError(PS_ERR_UNKNOWN, false, "database error");
Note: See TracChangeset for help on using the changeset viewer.