Skip to content

Commit

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

uncertainity_hdus = None #Default value
uncertainity_hdus = None #Default values
uncertainity = None
if cached_hdus is not None:
hdus = cached_hdus[0]
if "rtell" in file:
Expand Down Expand Up @@ -372,7 +373,6 @@ def __init__(
uncertainty = StdDevUncertainty(np.abs(stddev))
mask = np.isnan(flux) | np.isnan(uncertainty.array)
else:
uncertainity = None
mask = np.isnan(flux)

super().__init__(
Expand Down

0 comments on commit a420e4a

Please sign in to comment.