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

    r23229 r23688  
    9292
    9393    // default values
    94     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
    95 
    96     // Required if code == 0
    97     PXOPT_LOOKUP_STR(uri, config->args, "-uri", (code == 0), false);
    98     PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (code == 0), false);
     94    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
     95
     96    // Required if fault == 0
     97    PXOPT_LOOKUP_STR(uri, config->args, "-uri", (fault == 0), false);
     98    PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (fault == 0), false);
    9999
    100100    // optional
     
    144144        user_5,
    145145        path_base,
    146         "full",
    147         code
     146        "full",
     147        fault
    148148    );
    149149    psFree(rawImfiles);
     
    190190        psStringAppend(&query, " %s", whereClause);
    191191        psFree(whereClause);
    192         hasWhere = true;
     192        hasWhere = true;
    193193    }
    194194    psFree (where);
     
    196196    // restrict search to included imfiles
    197197    if (included) {
    198         if (hasWhere) {
    199             psStringAppend(&query, " AND detInputExp.include = 1");
    200         } else {
    201             psStringAppend(&query, " WHERE detInputExp.include = 1");
    202         }
    203         hasWhere = true;
     198        if (hasWhere) {
     199            psStringAppend(&query, " AND detInputExp.include = 1");
     200        } else {
     201            psStringAppend(&query, " WHERE detInputExp.include = 1");
     202        }
     203        hasWhere = true;
    204204    }
    205205
    206206    if (hasWhere) {
    207         psStringAppend(&query, " AND");
     207        psStringAppend(&query, " AND");
    208208    } else {
    209         psStringAppend(&query, " WHERE");
     209        psStringAppend(&query, " WHERE");
    210210    }
    211211
    212212    if (faulted) {
    213213        // list only faulted rows
    214         psStringAppend(&query, " %s", " detProcessedImfile.fault != 0");
     214        psStringAppend(&query, " %s", " detProcessedImfile.fault != 0");
    215215    } else {
    216216        // don't list faulted rows
     
    263263    PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "==");
    264264    PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "==");
    265     PXOPT_COPY_S16(config->args, where, "-code", "fault", "==");
     265    PXOPT_COPY_S16(config->args, where, "-fault", "fault", "==");
    266266
    267267    psString query = pxDataGet("dettool_revertprocessedimfile.sql");
     
    303303
    304304    if (!setProcessedImfileDataState(config, det_id, exp_id, class_id, data_state)) {
    305         return false;
     305        return false;
    306306    }
    307307    return true;
Note: See TracChangeset for help on using the changeset viewer.