- Timestamp:
- Jun 27, 2018, 3:31:55 PM (8 years ago)
- Location:
- branches/czw_branch/20170908
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/nightly_science.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20170908
- Property svn:mergeinfo changed
-
branches/czw_branch/20170908/ippScripts/scripts/nightly_science.pl
r39926 r40483 46 46 47 47 # Grab options 48 my ( $date, $datetime, $ camera, $dbname, $logfile, $verbose, $manual);48 my ( $date, $datetime, $now, $camera, $dbname, $logfile, $verbose, $manual); 49 49 my ( $help, $isburning, $force_stack_count, $force_diff_count, $force_registration, $test_mode, $this_target_only, $this_filter_only, $this_mode_only, $check_mode); 50 50 my ( $registration_status, $burntool_status, $observing_status, $old_date); … … 95 95 --verbose 96 96 --force_stack_count Force the chip/warp counts. 97 --force_diff_count Force the chip/warp counts. 97 --force_diff_count Force the chip/warp counts. 98 --force_registration Force registration counts. 98 99 --this_target_only Process only a single target. 99 100 --this_filter_only Process only a single filter. … … 255 256 $date = $datetime->ymd(); 256 257 } 258 $now = DateTime->now(time_zone => 'UTC'); 257 259 258 260 if (defined($this_target_only)) { … … 2117 2119 month => $datetime->month, 2118 2120 day => $datetime->day, 2119 hour => 6,2121 hour => 17, # 7, 2120 2122 minute => 30, 2121 2123 second => 0, 2122 time_zone => ' Pacific/Honolulu');2124 time_zone => 'UTC'); 2123 2125 2124 2126 foreach my $eon (keys %eon_config) { … … 2142 2144 } 2143 2145 } 2144 # print "$datetime $eon_dt\n"; 2145 if (DateTime->compare($datetime,$eon_dt) < 1) { 2146 if ($force_registration) { 2147 return("END_OF_NIGHT"); 2148 } 2149 # print "$now $eon_dt " . DateTime->compare($now,$eon_dt) . "\n"; 2150 if (DateTime->compare($now,$eon_dt) < 1) { 2146 2151 return("OBSERVING"); 2147 2152 }
Note:
See TracChangeset
for help on using the changeset viewer.
