IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 21, 2010, 1:23:03 PM (15 years ago)
Author:
watersc1
Message:

fixed typos in Task, and added handler for End of night and no diffable exposures into script.

File:
1 edited

Legend:

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

    r30120 r30132  
    12891289    my $pretend = shift;
    12901290
     1291    my $Npotential = 0;
     1292    my $Nnoexp     = 0;
    12911293    foreach my $target (sort (keys %science_config)) {
    12921294        if ($science_config{$target}{DIFFABLE} == 1) {
    12931295            foreach my $filter (@filter_list) {
     1296                $Npotential ++;
    12941297                my ($NprocChips,$NprocWarps) = pre_diff_queue($date,$observing_state,$target,$filter);
    12951298#               if ((!defined($force_diff_count))&&($NprocChips != $NprocWarps)) {
     
    13011304#                 }
    13021305                if ($NprocChips == 0) {
     1306                    $Nnoexp ++;
    13031307                    if ($debug == 1) {
    13041308                        print STDERR "execute_diffs: Target $target in filter $filter on $date has no exposures.\n";
     
    13281332        }
    13291333    }
     1334    if (($Npotential == $Nnoexp)&&($metadata_out{nsObservingState} eq 'END_OF_NIGHT')) {
     1335        $metadata_out{nsDiffState} = 'FINISHED_DIFFS';
     1336    }   
     1337
    13301338}
    13311339
Note: See TracChangeset for help on using the changeset viewer.