Skip to content

Commit

Permalink
Allow increased verbosity in run_plan; skip forward by 60 s instead o…
Browse files Browse the repository at this point in the history
…f 60 days when a tile is not available.
  • Loading branch information
schlafly authored and araichoor committed Jan 20, 2021
1 parent 843f799 commit ad288ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py/desisurvey/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def next_tile(self, mjd_now, ETC, seeing, transp, skylevel, HA_sigma=15., greedi
self.tile_sel &= (absha < self.max_ha)
if not np.any(self.tile_sel):
if verbose:
self.log.warning('No tiles left to observe after airmass cut.')
self.log.warning('No tiles left to observe after HA/airmass cut.')
return None, None, None, None, None, program, mjd_program_end
# Is the moon up?
if mjd_now > self.night_ephem['moonrise'] and mjd_now < self.night_ephem['moonset']:
Expand All @@ -399,6 +399,8 @@ def next_tile(self, mjd_now, ETC, seeing, transp, skylevel, HA_sigma=15., greedi
idx = np.where(self.tile_sel)[0][too_close]
self.tile_sel[idx] = False
if not np.any(self.tile_sel):
if verbose:
self.log.warning('No tiles left to observe after moon separation cut.')
# No tiles left to observe after moon avoidance veto.
return None, None, None, None, None, program, mjd_program_end
else:
Expand Down

0 comments on commit ad288ad

Please sign in to comment.