Skip to content

Commit

Permalink
same submit_night good_exps when laststeps is None
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelo-alvarez committed Mar 10, 2023
1 parent 2b4dcbe commit 40f4d69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py/desispec/scripts/submit_night.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ def submit_night(night, proc_obstypes=None, z_submit_types=None, queue='realtime
dry_run = True

## If laststeps not defined, default is only LASTSTEP=='all' exposures for non-tilenight runs
tilenight_laststeps = laststeps
if laststeps is None:
if not use_tilenight:
laststeps = ['all',]
laststeps = ['all',]
else:
laststep_options = get_last_step_options()
for laststep in laststeps:
Expand Down Expand Up @@ -401,7 +401,7 @@ def submit_night(night, proc_obstypes=None, z_submit_types=None, queue='realtime
resubmit_partial_complete=resubmit_partial_complete,
z_submit_types=cur_z_submit_types,
system_name=system_name,use_specter=use_specter,
laststeps=laststeps)
laststeps=tilenight_laststeps)
else:
## If running redshifts and there is a future exposure of the same tile
## then only run per exposure redshifts until then
Expand Down

0 comments on commit 40f4d69

Please sign in to comment.