Skip to content

Commit

Permalink
get_surveys_night_expids(): handle SCIENCE exposure with no fiberassi…
Browse files Browse the repository at this point in the history
…gn files
  • Loading branch information
araichoor committed Sep 6, 2024
1 parent e8256df commit 48e477d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions py/desispec/night_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ def get_surveys_night_expids(
survey = fahdr["SURVEY"]
else:
survey = fahdr["FA_SURV"]
else:
log.warning("no associated fiberassign file for {}; ignoring".format(fns[i]))
continue
if survey == "unknown":
log.warning("SURVEY could not be identified for {}; setting to 'unknown'".format(fns[i]))
# AR append
Expand Down

0 comments on commit 48e477d

Please sign in to comment.