From 7f36418d4f3be8f51e19147e54160301408bda3a Mon Sep 17 00:00:00 2001 From: Jeremy Buhler Date: Sun, 1 Sep 2024 19:55:22 -0500 Subject: [PATCH] * tiny cleanup of spectroscopy preprocessing --- py/fastspecfit/continuum.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/py/fastspecfit/continuum.py b/py/fastspecfit/continuum.py index 12b2f63..0ffbbe5 100644 --- a/py/fastspecfit/continuum.py +++ b/py/fastspecfit/continuum.py @@ -70,9 +70,7 @@ def __init__(self, data, templates, phot, igm, ebv_guess=0.05, self.wavelen = np.sum([len(w) for w in self.data['wave']]) # get preprocessing data to accelerate resampling - rspre = [] - for wave in self.data['wave']: - rspre.append(trapz_rebin_pre(wave)) + rspre = [ trapz_rebin_pre(w) for w in self.data['wave'] ] self.spec_pre = tuple(rspre)