From 921c03275db42c2a20fe7c06938ed9b59213b4ee Mon Sep 17 00:00:00 2001 From: akremin Date: Tue, 15 Jun 2021 17:02:25 -0700 Subject: [PATCH] comment on new efftime_etc order logic --- py/desispec/workflow/exptable.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py/desispec/workflow/exptable.py b/py/desispec/workflow/exptable.py index 56a92755b..5b55cbec4 100644 --- a/py/desispec/workflow/exptable.py +++ b/py/desispec/workflow/exptable.py @@ -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: