Changeset 24856
- Timestamp:
- Jul 20, 2009, 8:30:38 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/magic_destreak_revert.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_destreak_revert.pl
r24726 r24856 60 60 61 61 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 62 pod2usage( -msg => "Required options: --magic_ds_id --camera --st reaks --stage --stage_id --component --uri--path_base --outroot",62 pod2usage( -msg => "Required options: --magic_ds_id --camera --stage --stage_id --component --path_base --outroot", 63 63 -exitval => 3) unless 64 64 defined $magic_ds_id and … … 142 142 143 143 144 my ($image, $mask, $ch_mask, $weight );145 my ($bimage, $bmask, $bch_mask, $bweight );144 my ($image, $mask, $ch_mask, $weight, $sources); 145 my ($bimage, $bmask, $bch_mask, $bweight, $bsources); 146 146 147 147 if ($stage eq "raw") { … … 171 171 $mask = $ipprc->filename("PSWARP.OUTPUT.MASK", $path_base); 172 172 $weight = $ipprc->filename("PSWARP.OUTPUT.VARIANCE", $path_base); 173 $sources = $ipprc->filename("PSWARP.OUTPUT.SOURCES", $path_base); 173 174 $bimage = $ipprc->filename("PSWARP.OUTPUT", $backup_path_base); 174 175 $bmask = $ipprc->filename("PSWARP.OUTPUT.MASK", $backup_path_base); 175 176 $bweight = $ipprc->filename("PSWARP.OUTPUT.VARIANCE", $backup_path_base); 177 $bsources = $ipprc->filename("PSWARP.OUTPUT.SOURCES", $backup_path_base); 176 178 } elsif ($stage eq "diff") { 177 179 my $name = $inverse ? "PPSUB.INVERSE" : "PPSUB.OUTPUT"; # Base name for images … … 179 181 $mask = $ipprc->filename("$name.MASK", $path_base); 180 182 $weight = $ipprc->filename("$name.VARIANCE", $path_base); 183 $sources = $ipprc->filename("PPSUB.OUTPUT.SOURCES", $path_base); 181 184 $bimage = $ipprc->filename($name, $backup_path_base); 182 185 $bmask = $ipprc->filename("$name.MASK", $backup_path_base); 183 186 $bweight = $ipprc->filename("$name.VARIANCE", $backup_path_base); 187 $bsources = $ipprc->filename("PPSUB.OUTPUT.SOURCES", $backup_path_base); 184 188 } 185 189 … … 189 193 # don't commit next the next couple of lines and see xxx below 190 194 # change to if 0 to revert chip runs without masks 191 if (0) {192 193 195 if ($mask) { 194 196 if (!revert_file($mask, $bmask)) { … … 211 213 } 212 214 213 # xxx don't commmit next line214 }215 215 216 216 if ($weight) { 217 217 revert_file($weight, $bweight) or 218 218 &my_die("failed to restore variance image", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR); 219 } 220 221 if ($sources) { 222 revert_file($sources, $bsources) or 223 &my_die("failed to restore sources file", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR); 219 224 } 220 225
Note:
See TracChangeset
for help on using the changeset viewer.
