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_residimfile.c

    r23229 r23688  
    7575    PS_ASSERT_PTR_NON_NULL(config, false);
    7676
    77    
     77
    7878    PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); // required
    7979    PXOPT_LOOKUP_S32(iteration, config->args, "-iteration", false, false);
     
    8484    PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); // required
    8585    PXOPT_LOOKUP_STR(class_id, config->args, "-class_id", true, false); // required
    86     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
    87     PXOPT_LOOKUP_STR(uri, config->args, "-uri", (code == 0), false); // Required if code == 0
    88     PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (code == 0), false); // Required if code == 0
     86    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
     87    PXOPT_LOOKUP_STR(uri, config->args, "-uri", (fault == 0), false); // Required if fault == 0
     88    PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (fault == 0), false); // Required if fault == 0
    8989    PXOPT_LOOKUP_F64(bg, config->args, "-bg", false, false);
    9090    PXOPT_LOOKUP_F64(bg_stdev, config->args, "-bg_stdev", false, false);
     
    107107
    108108    if (!detResidImfileInsert(
    109             config->dbh,
     109            config->dbh,
    110110            det_id,
    111111            iteration,
     
    134134            user_5,
    135135            path_base,
    136             "full",
    137             code
     136            "full",
     137            fault
    138138    )) {
    139139        psError(PS_ERR_UNKNOWN, false, "database error");
     
    174174        psStringAppend(&query, " %s", whereClause);
    175175        psFree(whereClause);
    176         hasWhere = true;
     176        hasWhere = true;
    177177    }
    178178    psFree(where);
     
    180180    // restrict search to included imfiles
    181181    if (included) {
    182         if (hasWhere) {
    183             psStringAppend(&query, " AND detInputExp.include = 1");
    184         } else {
    185             psStringAppend(&query, " WHERE detInputExp.include = 1");
    186         }
    187         hasWhere = true;
     182        if (hasWhere) {
     183            psStringAppend(&query, " AND detInputExp.include = 1");
     184        } else {
     185            psStringAppend(&query, " WHERE detInputExp.include = 1");
     186        }
     187        hasWhere = true;
    188188    }
    189189
    190190    if (hasWhere) {
    191         psStringAppend(&query, " AND");
     191        psStringAppend(&query, " AND");
    192192    } else {
    193         psStringAppend(&query, " WHERE");
     193        psStringAppend(&query, " WHERE");
    194194    }
    195195
     
    249249    PXOPT_COPY_S64(config->args, where, "-exp_id",  "exp_id", "==");
    250250    PXOPT_COPY_STR(config->args, where, "-class_id",  "class_id", "==");
    251     PXOPT_COPY_S16(config->args, where, "-code",      "fault", "==");
     251    PXOPT_COPY_S16(config->args, where, "-fault",      "fault", "==");
    252252
    253253    psString query = pxDataGet("dettool_revertresidimfile.sql");
     
    289289    PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", true, false);
    290290    if (!setResidImfileDataState(config, det_id, iteration, exp_id, class_id, data_state)) {
    291         return false;
     291        return false;
    292292    }
    293293    return true;
Note: See TracChangeset for help on using the changeset viewer.