Changeset 11319 for trunk/ippScripts/scripts/detrend_norm_apply.pl
- Timestamp:
- Jan 26, 2007, 12:20:56 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_norm_apply.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_apply.pl
r11316 r11319 98 98 run(command => $command, verbose => 1); 99 99 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); 102 102 } 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; 107 107 } 108 108 … … 111 111 { 112 112 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); 114 114 my @contents = <$statsFile>; # Contents of file 115 115 close $statsFile; 116 116 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files 117 117 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); 119 119 $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); 121 121 } 122 122 … … 143 143 run(command => $command, verbose => 1); 144 144 unless ($success) { 145 $error_code >> 8;145 $error_code = $error_code >> 8; 146 146 warn("Unable to perform dettool -addnormalizedimfile: $error_code\n"); 147 147 exit($error_code);
Note:
See TracChangeset
for help on using the changeset viewer.
