Skip to content

Commit

Permalink
Fix indexing bug in zproc expqa check
Browse files Browse the repository at this point in the history
  • Loading branch information
akremin committed Aug 26, 2024
1 parent abfec75 commit c2b093d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions py/desispec/scripts/zproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c2b093d

Please sign in to comment.