IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 1, 2011, 2:12:15 PM (15 years ago)
Author:
watersc1
Message:

Fix magictool to understand that we sometimes want to allow multiple diffs in the same label to be independently processed.

File:
1 edited

Legend:

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

    r31659 r32283  
    131131    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
    132132    PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false);
    133 
     133    PXOPT_LOOKUP_BOOL(multidiff, config->args, "-multidiff", false);
    134134    psMetadata *diffWhere = psMetadataAlloc(); // WHERE conditions for diffRuns
    135135    PXOPT_COPY_STR(config->args, diffWhere, "-diff_label", "diffRun.label", "==");
     
    142142    // Get list of exposures ready to magic
    143143    {
    144         psString query = pxDataGet("magictool_definebyquery_select.sql");
     144        psString query;
     145        if (multidiff) {
     146          query = pxDataGet("magictool_definebyquery_select_multidiff.sql");
     147        }
     148        else {
     149          query = pxDataGet("magictool_definebyquery_select.sql");
     150        }
    145151        if (!query) {
    146152            psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
Note: See TracChangeset for help on using the changeset viewer.