IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24222


Ignore:
Timestamp:
May 19, 2009, 9:30:20 AM (17 years ago)
Author:
Paul Price
Message:

Only get inverse products if the diffRun is of the appropriate type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/diff_outputs.pl

    r24077 r24222  
    7373
    7474# Query to run
    75 my $sql = "SELECT path_base FROM diffSkyfile WHERE diff_id = $diff_id AND fault = 0 AND quality = 0";
     75my $sql = "SELECT path_base, bothways FROM diffSkyfile JOIN diffRun USING(diff_id) WHERE diff_id = $diff_id AND fault = 0 AND quality = 0";
    7676$sql .= " AND skycell_id = '$skycell_id'" if defined $skycell_id;
    7777
     
    8383my @products;                   # Array of products
    8484if (defined $products) {
    85   PRODUCT_SEARCH: foreach my $product ( split /,/, $products ) {
     85  PRODUCT_SEARCH: foreach my $product ( split(/,/, $products) ) {
    8686      foreach my $key ( keys %{PRODUCTS()} ) {
    8787          if ($product eq $key) {
     
    9393  }
    9494} else {
    95     @products = @{${PRODUCTS()}{'REGULAR'}};
     95    @products = @{${PRODUCTS()}{'ALL'}};
    9696}
    9797
    9898foreach my $diff ( @$diffs ) {
    9999    foreach my $product ( @products ) {
     100        next if (not defined $diff->{bothways} or $diff->{bothways} eq 'NULL' or not $diff->{bothways}) and $product =~ /INVERSE/;
    100101        copy_extension( $diff, ${EXTENSIONS()}{$product} );
    101102    }
Note: See TracChangeset for help on using the changeset viewer.