Changeset 23186 for trunk/ippScripts/scripts/detrend_reject_exp.pl
- Timestamp:
- Mar 4, 2009, 4:17:15 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_reject_exp.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_reject_exp.pl
r22430 r23186 20 20 use PS::IPP::Metadata::List qw( parse_md_list ); 21 21 use Statistics::Descriptive; 22 23 my $ipprc = PS::IPP::Config->new(); # IPP configuration24 22 25 23 my $ITER_LIMIT = 20; … … 60 58 defined $outroot; 61 59 62 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 63 $SIG{__DIE__} = sub { die @_ if $^S; 64 my_die( $_[0], $det_id, $iter, $PS_EXIT_UNKNOWN_ERROR ); }; 65 66 # check for existing directory, generate if needed 67 $ipprc->outroot_prepare($outroot); 68 60 my $ipprc = PS::IPP::Config->new() or my_die( "Unable to set up", $det_id, $iter, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 61 $ipprc->outroot_prepare($outroot) or my_die( "Unable to prepare output root", $det_id, $iter, $PS_EXIT_SYS_ERROR ); 69 62 my $logName = "$outroot.log"; # Name for log 70 71 $ipprc->redirect_output($logName) if $redirect; 63 $ipprc->redirect_output($logName) or my_die( "Unable to redirect", $det_id, $iter, $PS_EXIT_SYS_ERROR ) if $redirect; 72 64 73 65 # values to extract from output metadata and the stats to calculate
Note:
See TracChangeset
for help on using the changeset viewer.
