Skip to content

Commit

Permalink
comment on new efftime_etc order logic
Browse files Browse the repository at this point in the history
  • Loading branch information
akremin committed Jun 16, 2021
1 parent 27dfbac commit 921c032
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py/desispec/workflow/exptable.py
Expand Up @@ -770,7 +770,9 @@ def summarize_exposure(raw_data_dir, night, exp, obstypes=None, colnames=None, c
outdict['EBVFAC'] = 1.0 / etc_dict['fassign']['MW_transp']

## Get EFFTIME from etc if available, then check in raw data.
## Default if both fail is -99 (already set)
## If ETCTEFF is then available and it can be transoformed to a float, use it
## And for data before June 2021, check for ACTTEFF.
## Default if all fail is -99 (already set)
if 'expinfo' in etc_dict and 'efftime' in etc_dict['expinfo']:
outdict['EFFTIME_ETC'] = etc_dict['expinfo']['efftime']
elif 'ETCTEFF' in dat_header:
Expand Down

0 comments on commit 921c032

Please sign in to comment.