From a2d8bfef75bab60805f5e6f71174986392ade144 Mon Sep 17 00:00:00 2001 From: teutoburg Date: Tue, 26 Nov 2024 18:25:37 +0100 Subject: [PATCH] TODO comment... --- scopesim_templates/stellar/stars.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scopesim_templates/stellar/stars.py b/scopesim_templates/stellar/stars.py index 601ec8b..f942e8d 100644 --- a/scopesim_templates/stellar/stars.py +++ b/scopesim_templates/stellar/stars.py @@ -244,6 +244,8 @@ def stars(filter_name, amplitudes, spec_types, x, y, library="pyckles", spectra = [Spextrum(library + "/" + spec.lower()).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 + # O(n) scaling for number of spectra... weight = np.ones(shape=amplitudes.shape) # get the references to the unique stellar types