IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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:
3 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");
Note: See TracChangeset for help on using the changeset viewer.