IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42097 for trunk/ippTools/src


Ignore:
Timestamp:
Feb 28, 2022, 4:29:58 PM (4 years ago)
Author:
eugene
Message:

fix definition of a field in pxadmin_create_tables; add option to queue stacks with invalid input warps; add option to restrict stack query by spatial region

Location:
trunk/ippTools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools

  • trunk/ippTools/src

  • trunk/ippTools/src/stacktool.c

    r41297 r42097  
    264264    pxAddLabelSearchArgs (config, where, "-warp_id",                   "warpRun.warp_id", "==");
    265265   
     266    // Add position dependence here.
     267    if (!pxspaceBoxAddWhere(config, where)) {
     268      psError(psErrorCodeLast(), false, "pxSpaceBoxAddWhere failed");
     269      return false;
     270    }
     271 
    266272    // these are used to build the HAVING restriction
    267273    PXOPT_COPY_S32(config->args, having, "-min_num", "num_warp", ">=");
     
    922928    PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);
    923929    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
    924 
    925     psString query = pxDataGet("stacktool_tosum.sql");
     930    PXOPT_LOOKUP_BOOL(ignore_warp_state, config->args, "-ignore-warp-state", false);
     931
     932    psString query = ignore_warp_state ? pxDataGet("stacktool_tosum_allstates.sql") : pxDataGet("stacktool_tosum.sql");
    926933    if (!query) {
    927934        psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
  • trunk/ippTools/src/stacktoolConfig.c

    r41297 r42097  
    103103    psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-pretend",  0, "do not actually modify the database", false);
    104104    psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false);
     105    pxspaceBoxAddArguments(definebyqueryArgs);
    105106
    106107    // -definerun
     
    153154    psMetadataAddU64(tosumArgs, PS_LIST_TAIL, "-limit",  0,            "limit result set to N items", 0);
    154155    psMetadataAddBool(tosumArgs, PS_LIST_TAIL, "-simple",  0,            "use the simple output format", false);
     156    psMetadataAddBool(tosumArgs, PS_LIST_TAIL, "-ignore-warp-state",  0, "generate the stack even if some inputs are not full", false);
    155157
    156158    // -tobkg
Note: See TracChangeset for help on using the changeset viewer.