From dcbdc545de2e9a2239a8af2d98a9d3b6fdf36e67 Mon Sep 17 00:00:00 2001 From: JenniferKarr Date: Thu, 10 Apr 2025 10:24:58 +0800 Subject: [PATCH] remove a .lower() on the model name for stellar models. Some of the SpeXtra models (e.g. irtf) have upper case names for the spectral stypes, which can't be accessed via the current code. --- scopesim_templates/stellar/stars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scopesim_templates/stellar/stars.py b/scopesim_templates/stellar/stars.py index b5e04ec..76ea5bd 100644 --- a/scopesim_templates/stellar/stars.py +++ b/scopesim_templates/stellar/stars.py @@ -244,7 +244,7 @@ def stars(filter_name, amplitudes, spec_types, x, y, library="pyckles", for spt in cat_spec_types] else: - spectra = [Spextrum(library + "/" + spec.lower()).scale_to_magnitude( + spectra = [Spextrum(library + "/" + spec).scale_to_magnitude( amp, filter_curve=filter_name) for spec, amp in zip(spec_types, amplitudes)] # TODO: actually use weights here instead of spectra scaling to avoid