Skip to content

Commit

Permalink
Merge pull request #231 from hpparvi/issue_227_fix
Browse files Browse the repository at this point in the history
Fix for PypeIt calibration line loading
  • Loading branch information
pllim authored Nov 15, 2024
2 parents 2cc466d + d88f5c1 commit ef38dc0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions specreduce/calibration_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,12 @@ def load_pypeit_calibration_lines(
warnings.warn(f"No calibration lines loaded from {lamps}.")
linelist = None
else:
linelist = vstack(linelists)
linelist = QTable(vstack(linelists))
linelist.rename_column('wave', 'wavelength')
# pypeit linelists use vacuum wavelengths in angstroms
linelist['wavelength'] *= u.Angstrom
if wave_air:
linelist['wavelength'] = vac_to_air(linelist['wavelength'])
linelist = QTable(linelist)

return linelist


Expand Down

0 comments on commit ef38dc0

Please sign in to comment.