IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 26, 2007, 12:20:56 PM (19 years ago)
Author:
Paul Price
Message:

Fixing compilation errors.

File:
1 edited

Legend:

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

    r11316 r11319  
    9898        run(command => $command, verbose => 1);
    9999    unless ($success) {
    100         $error_code >> 8;
    101         &my_die("Unable to perform ppImage: $error_code", $det_id, $iter, $class_id, $error_code);
     100        $error_code = $error_code >> 8;
     101        &my_die("Unable to perform ppImage: $error_code", $detId, $iter, $classId, $error_code);
    102102    }
    103     &my_die("Can't find expected output file: $output", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless -e $output;
    104     &my_die("Can't find expected output file: $b1name", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless -e $b2name;
    105     &my_die("Can't find expected output file: $b2name", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless -e $b1name;
    106     &my_die("Can't find expected output file: $statsName", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless -e $statsName;
     103    &my_die("Can't find expected output file: $output", $detId, $iter, $classId, $PS_EXIT_SYS_ERROR) unless -e $output;
     104    &my_die("Can't find expected output file: $b1name", $detId, $iter, $classId, $PS_EXIT_SYS_ERROR) unless -e $b2name;
     105    &my_die("Can't find expected output file: $b2name", $detId, $iter, $classId, $PS_EXIT_SYS_ERROR) unless -e $b1name;
     106    &my_die("Can't find expected output file: $statsName", $detId, $iter, $classId, $PS_EXIT_SYS_ERROR) unless -e $statsName;
    107107}
    108108
     
    111111{
    112112    my $statsFile;              # File handle
    113     open $statsFile, $statsName or &my_die("Can't open statistics file $statsName: $!\n", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR);
     113    open $statsFile, $statsName or &my_die("Can't open statistics file $statsName: $!\n", $detId, $iter, $classId, $PS_EXIT_SYS_ERROR);
    114114    my @contents = <$statsFile>; # Contents of file
    115115    close $statsFile;
    116116    my $mdcParser = PS::IPP::Metadata::Config->new;     # Parser for metadata config files
    117117    my $metadata = $mdcParser->parse(join "", @contents)
    118         or &my_die("Unable to parse metadata config", $det_id, $iter, $class_id, $PS_EXIT_PROG_ERROR);
     118        or &my_die("Unable to parse metadata config", $detId, $iter, $classId, $PS_EXIT_PROG_ERROR);
    119119    $stats = PS::IPP::Metadata::Stats->new(); # Stats parser
    120     $stats->parse($metadata) or &my_die("Unable to find all values in statistics output.", $det_id, $iter, $class_id, $PS_EXIT_PROG_ERROR);
     120    $stats->parse($metadata) or &my_die("Unable to find all values in statistics output.", $detId, $iter, $classId, $PS_EXIT_PROG_ERROR);
    121121}
    122122
     
    143143        run(command => $command, verbose => 1);
    144144    unless ($success) {
    145         $error_code >> 8;
     145        $error_code = $error_code >> 8;
    146146        warn("Unable to perform dettool -addnormalizedimfile: $error_code\n");
    147147        exit($error_code);
Note: See TracChangeset for help on using the changeset viewer.