Bugfix: convert spectral density using the wavelength

This commit is contained in:
Lukas Klass 2020-10-12 14:20:37 +02:00
parent b50f942f83
commit f205cc011e
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ def readCSV(file: str, units: list = None, format_: str = None) -> Table:
except:
data[data.colnames[i]] = data[data.colnames[i]].to(units[i],
equivalencies=u.spectral_density(
data[data.colnames[0]]))
u.Quantity(data[data.colnames[0]])))
# Use default units
elif units is not None and len(units) == len(data.columns):
for i in range(len(data.columns)):