IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26144 for trunk/ippTools


Ignore:
Timestamp:
Nov 13, 2009, 2:55:01 PM (17 years ago)
Author:
Paul Price
Message:

Better use of '-available' flag: queue a diff run with available stack templates, even if not all skycells have a template.

Location:
trunk/ippTools
Files:
3 edited

Legend:

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

    r26138 r26144  
    2525    JOIN chipRun USING(chip_id)
    2626    WHERE warp1 IS NOT NULL
     27        AND warpRun.state = 'full'
    2728    -- warp where hook %s
    2829) AS diffExp USING(exp_id, warp_id)
  • trunk/ippTools/src/difftool.c

    r26139 r26144  
    12051205    psFree(warp2Where);
    12061206
    1207     if (!available) {
    1208         // diff what's available, even if warp run has some faults and is incomplete
    1209         psStringAppend(&warp1Query, " AND warpRun.state = 'full'");
    1210         psStringAppend(&warp2Query, " AND warpRun.state = 'full'");
    1211     }
    1212 
    12131207    // don't queue for exposures that have already been diff'd unless requested
    12141208    psString diffQuery = NULL;
     
    13921386
    13931387        if (num == 0) {
    1394             psTrace("difftool", PS_LOG_INFO, "no skycells with stack found for %" PRId64, warp_id);
     1388            psTrace("difftool", PS_LOG_INFO, "no skycells with stack found for warp_id %" PRId64, warp_id);
    13951389            continue;
    13961390        }
     
    13981392        if (!available && (num != skycell_count)) {
    13991393            psTrace("difftool", PS_LOG_INFO, "%" PRId64 " skyfiles with stack found for warp_id %" PRId64
    1400                     " need %" PRId64, num, warp_id, skycell_count);
     1394                    " but need %" PRId64, num, warp_id, skycell_count);
    14011395            continue;
    14021396        }
  • trunk/ippTools/src/difftoolConfig.c

    r25840 r26144  
    192192    psMetadataAddBool(definewarpstackArgs, PS_LIST_TAIL, "-new-templates", 0, "also search for diffs with new template", false);
    193193    psMetadataAddBool(definewarpstackArgs, PS_LIST_TAIL, "-rerun", 0, "define new run even if one exists", false);
    194     psMetadataAddBool(definewarpstackArgs, PS_LIST_TAIL, "-available", 0, "define new run even if warpRun has some faults", false);
     194    psMetadataAddBool(definewarpstackArgs, PS_LIST_TAIL, "-available", 0, "define new run even if no stacks available for some skycells", false);
    195195    psMetadataAddBool(definewarpstackArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false);
    196196    psMetadataAddBool(definewarpstackArgs, PS_LIST_TAIL, "-pretend", 0, "list results but to not queue", false);
     
    328328    PXOPT_ADD_MODE("-topurgedskyfile", "set skyfile as purged", DIFFTOOL_MODE_TOPURGEDSKYFILE, topurgedskyfileArgs);
    329329    PXOPT_ADD_MODE("-toscrubbedskyfile", "set skyfile as scrubbed", DIFFTOOL_MODE_TOSCRUBBEDSKYFILE, toscrubbedskyfileArgs);
    330    
     330
    331331    if (!pxGetOptions(stderr, argc, argv, config, modes, argSets)) {
    332332        psError(PS_ERR_UNKNOWN, true, "option parsing failed");
Note: See TracChangeset for help on using the changeset viewer.