IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 17, 2011, 2:20:59 PM (15 years ago)
Author:
bills
Message:

Correctly create distRuns for static sky runs.
For multi filter runs require a distTarget with filter = 'multi'.
Single filter runs are queued with new parameter -singlefilter

File:
1 edited

Legend:

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

    r32680 r32696  
    164164    PXOPT_LOOKUP_STR(dist_group, config->args, "-dist_group", false, false);
    165165
     166    PXOPT_LOOKUP_BOOL(single, config->args, "-singlefilter", false);
     167
    166168    if (use_alternate) {
    167169        if (strcmp(stage, "raw")) {
     
    354356    } else if (!strcmp(stage, "sky")) {
    355357        magicRunType = "staticskyRun";
    356         query = pxDataGet("disttool_definebyquery_sky.sql");
     358        if (single) {
     359            query = pxDataGet("disttool_definebyquery_sky_singlefilter.sql");
     360        } else {
     361            query = pxDataGet("disttool_definebyquery_sky.sql");
     362        }
    357363        if (!query) {
    358364            psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
     
    411417    if (!no_magic) {
    412418        psStringAppend(&query, " AND (%s.magicked > 0)", magicRunType);
     419    }
     420
     421    if (!strcmp(stage, "sky") && single) {
     422        psStringAppend(&query, "\nGROUP BY sky_id HAVING count(stack_id) = 1");
    413423    }
    414424
Note: See TracChangeset for help on using the changeset viewer.