Changeset 23186 for trunk/ippScripts/scripts/detrend_resid_exp.pl
- Timestamp:
- Mar 4, 2009, 4:17:15 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_resid_exp.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_resid_exp.pl
r22430 r23186 30 30 use File::Temp qw( tempfile ); # tools to construct temp files 31 31 use PS::IPP::Config 1.01 qw( :standard ); 32 33 my $ipprc = PS::IPP::Config->new(); # IPP configuration34 32 35 33 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); # option parsing … … 79 77 defined $outroot; 80 78 81 # Unhandled exceptions should be passed on to my_die so they get pushed into the database82 $SIG{__DIE__} = sub { die @_ if $^S;83 my_die( $_[0], $det_id, $iter, $exp_id, $PS_EXIT_UNKNOWN_ERROR ); };84 85 79 # load IPP config information for the specified camera 86 $ipprc->define_camera($camera); 87 80 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $det_id, $iter, $exp_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 88 81 my $logDest = $ipprc->filename("LOG.EXP", $outroot) or &my_die("Missing entry from camera config", $det_id, $iter, $exp_id, $PS_EXIT_CONFIG_ERROR); 89 90 $ipprc->redirect_output($logDest) if $redirect; 82 $ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR ) if $redirect; 91 83 92 84 # Recipes to use based on reduction class
Note:
See TracChangeset
for help on using the changeset viewer.
