From d88f5c1d2c3ca599a6e22ca7c42eda194eef5037 Mon Sep 17 00:00:00 2001 From: Hannu Parviainen Date: Fri, 15 Nov 2024 18:19:00 +0000 Subject: [PATCH] Fixed Issue #227: Convert the `linelist` table from a Table to a QTable before calling `specutils.utils.wcs_utils.vac_to_air`. --- specreduce/calibration_data.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/specreduce/calibration_data.py b/specreduce/calibration_data.py index 865989d..51a3e49 100644 --- a/specreduce/calibration_data.py +++ b/specreduce/calibration_data.py @@ -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