IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29233


Ignore:
Timestamp:
Sep 24, 2010, 3:44:17 PM (16 years ago)
Author:
rhenders
Message:

Handling failure to get smf path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/perl/getSmfForThisBatch.pl

    r29196 r29233  
    1010
    1111my $camera = undef;
    12 my $singleBatch = undef;
     12my $batch = undef;
    1313my $verbose = undef;
    1414my $save_temps = undef;
    1515
    1616GetOptions(
    17         'batch|b=s' => \$singleBatch,
     17        'batch|b=s' => \$batch,
    1818        'verbose|v' => \$verbose,
    1919        'save_temps|t' => \$save_temps,
     
    2828    print "* UNKNKOWN: option                          @ARGV\n";
    2929}
    30 if (!defined $singleBatch) {
     30if (!defined $batch) {
    3131    $quit=1;
    3232    print "* REQUIRED: need to provide a batch   -b <batch>\n";
     
    5555        $camera,
    5656        $gpc1Db,
    57         $singleBatch,
     57        $batch,
    5858        $ippToPspsDb,
    5959        "./",
     
    6161        $save_temps);
    6262
    63 
    64 print $detectionBatch->getSmfFile() . "\n";
    65 
     63my $smf = $detectionBatch->getSmfFile();
     64if (defined $smf) {
     65    print "$smf\n";
     66}
     67else {
     68    print "* Could not find an smf file for batch $batch\n";
     69}
Note: See TracChangeset for help on using the changeset viewer.