IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31948


Ignore:
Timestamp:
Jul 28, 2011, 2:51:52 PM (15 years ago)
Author:
watersc1
Message:

Move handling of dropped exposures to fix bad counting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20110622/ippScripts/scripts/lap_science.pl

    r31940 r31948  
    464464        my $companion;
    465465
     466        if  ($exposure->{data_state} eq 'drop') { # This exposure is impossible, so fudge the counts so we get through.
     467            $can_qstack ++;
     468            $can_diff ++;
     469            $have_diff ++;
     470            $can_fstack ++;         
     471            next;
     472        }
     473
    466474        if ($exposure->{pairwise}) {
    467475            # Load companion exposure information
     
    486494            $exposure = remake_this_exposure($exposure);
    487495        }
     496
     497
    488498        # Do quality checks here
    489499        my $is_bad_quality = 0;
     
    530540            $exposure->{data_state} = 'drop';
    531541            &update_this_exposure($exposure);
    532 
    533542        }
    534543       
    535         if  ($exposure->{data_state} eq 'drop') { # This exposure is impossible, so fudge the counts so we get through.
    536             $can_qstack ++;
    537             $can_diff ++;
    538             $have_diff ++;
    539             $can_fstack ++;         
    540             next;
    541         }
    542 
    543544        if (($exposure->{warpRun_state})&&  # This exposure has a warp
    544545            ($exposure->{warpRun_state} eq 'full')) { # This exposure's warp is done.
     
    572573    print "\n";
    573574    if ($do_nothing) {
     575        print "STATUS: Doing nothing.\n";
    574576        exit(0);
    575577    }
     
    585587                &update_this_exposure($exposure);
    586588            }
     589            $needs_qstack = 0;
    587590        }
    588591        else {
     
    621624        }
    622625    }
     626    print "STATUS: Exiting\n";
    623627    print "\n";
    624628    return(0);
Note: See TracChangeset for help on using the changeset viewer.