IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 2, 2021, 8:35:25 AM (5 years ago)
Author:
eugene
Message:

allow cross-filter stack-stack diffs with -relaxed-filters

File:
1 edited

Legend:

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

    r41549 r41681  
    24142414
    24152415    PXOPT_LOOKUP_BOOL(bothways, config->args, "-bothways", false);
     2416    PXOPT_LOOKUP_BOOL(relaxedFilters, config->args, "-relaxed-filters", false);
    24162417
    24172418    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
     
    24522453    }
    24532454
     2455    // restrict input and templated to the same filter unless not restricted
     2456    psString filtQuery0 = NULL;
     2457    psString filtQuery1 = NULL;
     2458    if (! relaxedFilters) {
     2459        psStringAppend(&filtQuery0, "AND stackRun.filter = template.filter");
     2460        psStringAppend(&filtQuery1, "AND stackRun.filter = template.filter");
     2461    }
     2462
    24542463    // find the distinct set of data_groups and filters
    24552464    psString query = pxDataGet("difftool_definestackstack_part0.sql");
     
    24682477    psStringSubstitute(&query, stack2Query, "@STACK2_QUERY@");
    24692478    psStringSubstitute(&query, diffQuery0,  "@DIFF0_QUERY@");
     2479    psStringSubstitute(&query, filtQuery0,  "@FILT0_QUERY@");
    24702480
    24712481    if (!p_psDBRunQuery(config->dbh, query)) {
     
    25462556        psStringSubstitute(&query, stack2Query,      "@STACK2_QUERY@");
    25472557        psStringSubstitute(&query, diffQuery1,       "@DIFF1_QUERY@");
     2558        psStringSubstitute(&query, filtQuery1,       "@FILT1_QUERY@");
    25482559
    25492560        psTrace("difftool", 1, "%s", query);
Note: See TracChangeset for help on using the changeset viewer.