Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indexing bug in zproc expqa check #2344

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading