Skip to content

Commit

Permalink
BKG srcname in jwst 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrammer committed Oct 22, 2024
1 parent e6db09a commit 16e4e34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion msaexp/slit_combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -4816,6 +4816,7 @@ def extract_spectra(

if trace_with_ypos in ["auto"]:
trace_with_ypos = ("b" not in target) & (not get_background)
trace_with_ypos &= ("BKG" not in target)

if root.startswith("glazebrook-v"):
utils.log_comment(
Expand Down Expand Up @@ -4919,7 +4920,7 @@ def extract_spectra(
)
continue

elif ("b" in target) & (
elif (("b" in target) | ("BKG" in target)) & (
(obj.info["shutter_state"] == "x").sum() > 0
):
utils.log_comment(
Expand Down

0 comments on commit 16e4e34

Please sign in to comment.