Skip to content

Commit

Permalink
Fix issue where uncertainity_hdus were not always there. Default is N…
Browse files Browse the repository at this point in the history
…one.
  • Loading branch information
Kyle Kaplan committed Jul 18, 2024
1 parent 96bf9d3 commit 7987499
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/muler/igrins.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ def __init__(
raise NameError("Cannot identify file as an IGRINS spectrum")
grating_order = grating_order_offsets[band] + order

uncertainity_hdus = None #Default value
if cached_hdus is not None:
hdus = cached_hdus[0]
if "rtell" in file:
sn = hdus["SNR"].data[order]
uncertainity_hdus = None
else:
uncertainity_hdus = cached_hdus[1]
if wavefile is not None:
Expand All @@ -315,7 +315,6 @@ def __init__(
elif "rtell" in file: #If rtell file is used, grab SNR stored in extension
sn = hdus["SNR"].data[order]
sn_used = True
uncertainity_hdus = None
hdr = hdus[0].header
if ("spec_a0v.fits" in file) and (wavefile is not None):
log.warn(
Expand Down

0 comments on commit 7987499

Please sign in to comment.