Skip to content

Commit

Permalink
Merge pull request #2344 from desihub/expqa_fname_bugfix
Browse files Browse the repository at this point in the history
Fix indexing bug in zproc expqa check
  • Loading branch information
sbailey authored Aug 26, 2024
2 parents abfec75 + c2b093d commit 1ec383e
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 1ec383e

Please sign in to comment.