Skip to content

Commit

Permalink
create_petalnz_pdf(): bugfix; correctly restrict to allowed surveys
Browse files Browse the repository at this point in the history
  • Loading branch information
araichoor committed Sep 6, 2024
1 parent 81e76e0 commit 22bee12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/desispec/night_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,7 @@ def create_petalnz_pdf(
surveys = surveys[ii]
# AR cutting on sv1, sv2, sv3, main
sel = np.in1d(surveys, ["sv1", "sv2", "sv3", "main"])
if sel.sum() > 0:
if sel.sum() != sel.size:
log.info(
"removing {}/{} tileids corresponding to surveys={}, different than sv1, sv2, sv3, main".format(
(~sel).sum(), tileids.size, ",".join(np.unique(surveys[~sel]).astype(str)),
Expand Down

0 comments on commit 22bee12

Please sign in to comment.