Skip to content

Commit

Permalink
Merge pull request #2365 from desihub/tiny_fix
Browse files Browse the repository at this point in the history
fix a logical, but likely harmless indexing bug with backup efftime
  • Loading branch information
sbailey committed Sep 20, 2024
2 parents 97b1748 + 26d6ec7 commit 48c1641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/desi_tsnr_afterburner
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def compute_summary_tables(summary_rows, preexisting_tsnr2_expid_table,
# EFFTIME SPEC FOR GOALTYPE backup determined by TSNR2_GPBBACKUP.
# If no 'GPB_EFFTIME_BACKUP' then default to the BGS time
ii = (exp_summary['GOALTYPE']=='backup')
if 'GPB_EFFTIME_BACKUP' in exp_summary.dtype.names and len(ii) > 0 and np.any(exp_summary['EFFTIME_SPEC'][ii]>0.):
if 'GPB_EFFTIME_BACKUP' in exp_summary.dtype.names and np.any(ii) and np.any(exp_summary['EFFTIME_SPEC'][ii]>0.):
exp_summary['EFFTIME_SPEC'][ii] = exp_summary['GPB_EFFTIME_BACKUP'][ii]
else:
exp_summary['EFFTIME_SPEC'][ii] = exp_summary['BGS_EFFTIME_BRIGHT'][ii]
Expand Down

0 comments on commit 48c1641

Please sign in to comment.