IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42296


Ignore:
Timestamp:
Oct 19, 2022, 2:22:04 PM (4 years ago)
Author:
tdeboer
Message:

extra diff processing protection on desperate diffs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/nightly_science.pl

    r42259 r42296  
    15671567        # Each comment should only appear once. Therefore, if we see it more than once, we assume the first is extra.
    15681568        my %comment_hash = ();
     1569        my $Nbad = 0;
    15691570        foreach my $this_warp (@{ $warps }) {
    15701571            my $this_comment = ${ $this_warp }[3];
     
    15731574            my $this_state   = ${ $this_warp }[4];
    15741575            my $this_warp_id  = ${ $this_warp }[1];
     1576           
     1577            #find exposures for this object that have not been fully processed
    15751578            if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL')) ) {
    1576                 print STDERR "diff_queue: excluding $this_object from making diffs due to exposure $this_exp_id not being processed to warp stage\n";
    1577                 next;
     1579                Nbad += 1;
    15781580            }
    15791581
     
    15851587            }
    15861588        }
     1589
     1590        #kick object out of diff consideration if it has exposures not fully processed
     1591        if ($Nbad > 0) {
     1592            print STDERR "diff_queue: excluding $this_object from making diffs due to not being fully processed to warp stage\n";
     1593            next;
     1594        }
     1595
    15871596        # Exclude any warps that are not stored in the comment_hash.
    15881597        my @keep_warps = ();
     
    17661775            my %comment_hash = ();
    17671776            my %comment_hash_good = ();
     1777            my $Nbad = 0;
    17681778            foreach my $this_warp (@{ $warps }) {
    17691779                my $this_comment = ${ $this_warp }[3];
     
    17721782                my $this_state   = ${ $this_warp }[4];
    17731783                my $this_fwhm   = ${ $this_warp }[7];
     1784                my $this_warp_id  = ${ $this_warp }[1];
     1785
     1786                #find exposures for this object that have not been fully processed
     1787                if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL')) ) {
     1788                    Nbad += 1;
     1789                }
     1790
    17741791                if (($this_quality != 0) || ($this_state eq 'drop') || ($this_fwhm > $maxFWHM)) {
    17751792                    print STDERR "desp_diff_singles: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality or state $this_state or FWHM $this_fwhm\n";
     
    17831800                    $comment_hash{$this_comment} = $this_exp_id;
    17841801                }
     1802            }
     1803
     1804            #kick object out of diff consideration if it has exposures not fully processed
     1805            if ($Nbad > 0) {
     1806                print STDERR "desp_diff_singles: excluding $this_object from making diffs due to not being fully processed to warp stage\n";
     1807                next;
    17851808            }
    17861809
     
    21382161            my %comment_hash = ();
    21392162            my %comment_hash_good = ();
     2163            my $Nbad = 0;
    21402164            foreach my $this_warp (@{ $warps }) {
    21412165                my $this_comment = ${ $this_warp }[3];
     
    21442168                my $this_state   = ${ $this_warp }[4];
    21452169                my $this_fwhm    = ${ $this_warp }[7];
     2170                my $this_warp_id  = ${ $this_warp }[1];
     2171
     2172                #find exposures for this object that have not been fully processed
     2173                if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL')) ) {
     2174                    Nbad += 1;
     2175                }
     2176
    21462177                if (($this_quality != 0) || ($this_state eq 'drop') || ($this_fwhm > $maxFWHM)) {
    21472178                    print STDERR "desp_diff_queue: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality or state $this_state or FWHM $this_fwhm\n";
     
    21552186                    $comment_hash{$this_comment} = $this_exp_id;
    21562187                }
     2188            }
     2189
     2190            #kick object out of diff consideration if it has exposures not fully processed
     2191            if ($Nbad > 0) {
     2192                print STDERR "desp_diff_queue: excluding $this_object from making diffs due to not being fully processed to warp stage\n";
     2193                next;
    21572194            }
    21582195
Note: See TracChangeset for help on using the changeset viewer.