Changeset 38241
- Timestamp:
- May 7, 2015, 2:09:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20141024/ippScripts/scripts/nightly_science.pl
- Property svn:mergeinfo set to
r36691 r38241 122 122 defined $test_mode or defined $clean_old or defined $check_mode or 123 123 defined $confirm_stacks or defined $burntool_status; 124 pod2usage( 125 -msg => "Explicitly choose --dbname and --camera", 126 -exitval => 3, 127 ) unless (defined($camera) and defined($dbname)); 124 128 125 129 # Configurable parameters from our config file. … … 132 136 my @unrecoverable_quality = (); 133 137 my @filter_list = (); 138 my %unique_filter_hash = (); 134 139 135 140 # Grab the configuration data. 136 my $conf_cmd = "$ppConfigDump - dump-recipe NIGHTLY_SCIENCE -";141 my $conf_cmd = "$ppConfigDump -camera $camera -dump-recipe NIGHTLY_SCIENCE -"; 137 142 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 138 143 run(command => $conf_cmd, verbose => $verbose); … … 161 166 } 162 167 elsif (${ $entry }{name} eq 'FILTERS') { 163 push @filter_list, ${ $entry }{value}; 168 $unique_filter_hash{ ${ $entry }{value} } = 1; 169 # push @filter_list, ${ $entry }{value}; 164 170 } 165 171 elsif (${ $entry }{name} eq 'UNRECOVERABLE_QUALITY') { … … 216 222 } 217 223 } 224 @filter_list = sort(keys(%unique_filter_hash)); 218 225 219 226 if (defined($date)) { … … 246 253 $datetime = DateTime->now(time_zone => 'UTC'); # time_zone => 'Pacific/Honolulu'); 247 254 $date = $datetime->ymd(); 248 }249 unless(defined($camera)) {250 $camera = 'GPC1';251 }252 unless(defined($dbname)) {253 $dbname = 'gpc1';254 255 } 255 256
Note:
See TracChangeset
for help on using the changeset viewer.
