create_petalnz_pdf(): look for redrock*fits instead of zmtl*fits #2151
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With this PR, the night_qa
create_petalnz_pdf()
now parses theredrock*fits
files to identify the processed petals, instead of thezmtl*fits
file.It addresses https://desisurvey.slack.com/archives/C01HNN87Y7J/p1703203812637849.
I.e. when we archived+mtl-updated a tile, then realized a petal was bad, so we re-process the tile, with creating a "dummy"
zmtl*fits
file (but no redrock or other files).The
create_petalnz_pdf()
function was looking forzmtl*fits
files to parse the existing petals.Here it would find the "dummy"
zmtl*fits
file, but then crash as there s noredrock*fits
file.I ve successfully run on night here: https://data.desi.lbl.gov/desi/users/raichoor/nightqa_dev/nightqa_v25/20231209/.