IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35834


Ignore:
Timestamp:
Jul 17, 2013, 2:30:44 PM (13 years ago)
Author:
bills
Message:

remove defaulting of camera and improve error handling in ipp_apply_burntoo_single.pl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20130712/ippScripts/scripts/ipp_apply_burntool_single.pl

    r35770 r35834  
    4545    defined $dbname;
    4646
    47 unless (defined $camera) {
    48     $camera = "GPC1";
    49 }
     47# unless (defined $camera) {
     48#    $camera = "GPC1";
     49# }
    5050
    5151my $missing_tools;
     
    146146            }
    147147            if (($addable == 1)&&($#continue_exp_ids < $continue)) {
    148                 $this_exp_id = $entry->{exp_id};
    149                 $this_uri    = $entry->{uri};
    150                 $this_state  = $entry->{imfile_state};
     148                $this_exp_id = $entry->{exp_id} ? $entry->{exp_id} : 0;
     149                $this_uri    = $entry->{uri} ? $entry->{uri} : 'NULL';
     150                $this_state  = $entry->{imfile_state} ? $entry->{imfile_state} : 'NULL';
    151151                print ">> $this_exp_id $this_uri $this_state\n";
    152152                if ($this_state eq 'pending_burntool') {
     
    177177    $outTable  =~ s/fits$/burn.tbl/;
    178178    my $outTableReal = $ipprc->file_resolve($outTable, 1);
     179    if (!$outTableReal) {
     180        &my_die("failed to resolve output file: $outTable",$exp_id,$class_id);
     181    }
    179182   
    180183    my $previousTable;
     
    184187        $previousTable =~ s/fits$/burn.tbl/;
    185188        $previousTableReal = $ipprc->file_resolve($previousTable, 0);
     189        if (!$previousTableReal) {
     190            &my_die("failed to resolve input file: $previousTable",$exp_id,$class_id);
     191        }
    186192    }
    187193   
Note: See TracChangeset for help on using the changeset viewer.