From c2b093dde2ca72e94f6fe8fd24a2a6dad5b9696c Mon Sep 17 00:00:00 2001 From: akremin Date: Mon, 26 Aug 2024 11:53:14 -0700 Subject: [PATCH] Fix indexing bug in zproc expqa check --- py/desispec/scripts/zproc.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/py/desispec/scripts/zproc.py b/py/desispec/scripts/zproc.py index 2ec39a155..04a2916ee 100644 --- a/py/desispec/scripts/zproc.py +++ b/py/desispec/scripts/zproc.py @@ -626,9 +626,12 @@ def main(args=None, comm=None): qapng = findfile('tileqapng', **findfileopts) qalog = findfile('tileqa', logfile=True, **findfileopts) ## requires all coadd and redrock outputs in addition to exposureqa + ## note that exposure_table is populated for both pernight and cumulative + ## so we can use it to loop over exposures infiles = [] - for expid, night in zip(expids, nights): - infiles.append(findfile('exposureqa', expid=expid, night=night, readonly=True)) + for erow in exposure_table: + infiles.append(findfile('exposureqa', expid=erow['EXPID'], + night=erow['NIGHT'], readonly=True)) for spectro in all_subgroups: findfileopts['spectrograph'] = spectro infiles.append(findfile('coadd', **findfileopts))