Skip to content

Commit

Permalink
hotfix for echelle
Browse files Browse the repository at this point in the history
  • Loading branch information
rcooke-ast committed Oct 16, 2023
1 parent 0c03daf commit 14faacb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pypeit/core/gui/identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ def initialise(cls, arccen, lamps, slits, slit=0, par=None, wv_calib_all=None,

if sigdetect is None:
sigdetect = par['sigdetect']
if isinstance(sigdetect, list):
sigdetect = sigdetect[slit]
print(f"Using {sigdetect} for sigma detection")

# If a wavelength calibration has been performed already, load it:
Expand All @@ -264,6 +266,7 @@ def initialise(cls, arccen, lamps, slits, slit=0, par=None, wv_calib_all=None,
msgs.warn("No wavelength calibration supplied!")
msgs.info("No wavelength solution will be loaded.")
wv_calib = None

# Extract the lines that are detected in arccen
thisarc = arccen[:, slit]
if nonlinear_counts is None:
Expand Down

0 comments on commit 14faacb

Please sign in to comment.