Changeset 11297 for trunk/ippScripts/scripts/detrend_reject_exp.pl
- Timestamp:
- Jan 25, 2007, 2:55:43 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_reject_exp.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_reject_exp.pl
r10719 r11297 18 18 use Pod::Usage qw( pod2usage ); 19 19 20 my ($det_id, $iter, $det_type, $camera, $filter, $ no_update);20 my ($det_id, $iter, $det_type, $camera, $filter, $dbname, $no_update); 21 21 GetOptions( 22 22 'det_id|d=s' => \$det_id, … … 25 25 'camera=s' => \$camera, 26 26 'filter=s' => \$filter, 27 'dbname|d=s' => \$dbname, # Database name 27 28 'no-update' => \$no_update 28 29 ) or pod2usage( 2 ); … … 48 49 { 49 50 my $command = "$dettool -residexp -det_id $det_id -iteration $iter"; # Command to run 51 $command .= " -dbname $dbname" if defined $dbname; 50 52 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 51 53 run(command => $command, verbose => 1); … … 105 107 $expTag = $expTags[$i]; # Exposure ID 106 108 $command = "$dettool -updateresidexp -det_id $det_id -iteration $iter -exp_tag $expTag"; # Command to run 109 $command .= " -dbname $dbname" if defined $dbname; 110 107 111 $reject = 0; # Reject this exposure? 108 112 … … 197 201 " -bg_mean_stdev " . $meanStats->standard_deviation(); 198 202 $command .= " -accept" if $master; 199 203 $command .= " -dbname $dbname" if defined $dbname; 204 200 205 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 201 206 run(command => $command, verbose => 1); … … 211 216 $command .= ' -again'; 212 217 } 218 219 $command .= " -dbname $dbname" if defined $dbname; 213 220 214 221 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note:
See TracChangeset
for help on using the changeset viewer.
