IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 4, 2012, 10:27:18 AM (14 years ago)
Author:
bills
Message:

For stacktool -updaterun accept a fault code and only update runs that
have a stackSumSkyfile with the given fault. Used to drop runs with
a particular fault code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/stacktool.c

    r34296 r34500  
    748748    PXOPT_COPY_STR(config->args, where, "-state",     "stackRun.state",     "==");
    749749    PXOPT_COPY_S64(config->args, where, "-sass_id",   "stackAssociationMap.sass_id",  "==");
     750    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
    750751    if (!psListLength(where->list)) {
    751752        psFree(where);
     
    756757    //CZW join against stackAssociationMap
    757758    psString query = psStringCopy("UPDATE stackRun");
     759
     760    if (fault) {
     761        psStringAppend(&query, " JOIN stackSumSkyfile USING(stack_id)");
     762        PXOPT_COPY_S16(config->args, where, "-fault", "stackSumSkyfile.fault", "==");
     763    }
    758764
    759765    // pxUpdateRun gets parameters from config->args and updates
Note: See TracChangeset for help on using the changeset viewer.