IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38296 for trunk/ippTools


Ignore:
Timestamp:
May 21, 2015, 8:13:08 AM (11 years ago)
Author:
bills
Message:

Minor changes to staticskytool to support "updating" runs.
Add path_base to -todo mode. This will list NULL for new runs and
the existing path base for runs in state update.
Add -set_quality option to -updateresult

Location:
trunk/ippTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/staticskytool_todo.sql

    r34726 r38296  
    1212    skycell.glong,
    1313    skycell.glat,
     14    staticskyResult.path_base,
    1415    IFNULL(Label.priority, 10000) AS priority
    1516FROM staticskyRun
     
    2021LEFT JOIN Label ON staticskyRun.label = Label.label
    2122WHERE
    22    (staticskyRun.state = 'new' AND staticskyResult.sky_id IS NULL)
     23   ((staticskyRun.state = 'new' AND staticskyResult.sky_id IS NULL)
     24    OR (staticskyRun.state = 'update' AND staticskyResult.fault = 0))
     25   
    2326   AND (Label.active OR Label.active IS NULL)
    2427
  • trunk/ippTools/src/staticskytool.c

    r37999 r38296  
    787787
    788788    PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false);
     789    PXOPT_LOOKUP_S16(quality, config->args, "-set_quality", false, false);
    789790
    790791    psMetadata *where = psMetadataAlloc();
    791792    PXOPT_COPY_S64(config->args, where, "-sky_id",   "sky_id",   "==");
    792793
    793     if (!pxSetFaultCode(config->dbh, "staticskyResult", where, fault, 0)) {
     794    if (!pxSetFaultCode(config->dbh, "staticskyResult", where, fault, quality)) {
    794795        psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag");
    795796        psFree (where);
  • trunk/ippTools/src/staticskytoolConfig.c

    r37999 r38296  
    148148    psMetadataAddS64(updateresultArgs, PS_LIST_TAIL, "-sky_id", 0, "define staticksky ID (required)", 0);
    149149    psMetadataAddS16(updateresultArgs, PS_LIST_TAIL, "-fault", 0, "set fault code (required)", 0);
     150    psMetadataAddS16(updateresultArgs, PS_LIST_TAIL, "-set_quality",  0, "set quality", 0);
    150151
    151152    // -exportrun
Note: See TracChangeset for help on using the changeset viewer.