Skip to content

Commit

Permalink
Fixed Issue #227: Convert the linelist table from a Table to a QTab…
Browse files Browse the repository at this point in the history
…le before calling `specutils.utils.wcs_utils.vac_to_air`.
  • Loading branch information
hpparvi committed Nov 15, 2024
1 parent 2cc466d commit d88f5c1
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 d88f5c1

Please sign in to comment.