From b24b5ae9a33f657d80b34f847965ae1b2a0a1d03 Mon Sep 17 00:00:00 2001 From: xin Date: Wed, 3 Aug 2022 18:44:12 +0800 Subject: [PATCH] fix gen gal bug,lost self.t --- SpecGen/SpecGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpecGen/SpecGenerator.py b/SpecGen/SpecGenerator.py index ac2879c..94f4c00 100644 --- a/SpecGen/SpecGenerator.py +++ b/SpecGen/SpecGenerator.py @@ -167,7 +167,7 @@ class SpecGenerator(object): thp_w = thp_i(w) deltW = (w - wave_pix[i - 1]) / 2 + (wave_pix[i + 1] - w) / 2 f = spec_pix[wave_pos[0] - 1 + i] - f = f / t / thp_w / deltW /self.expNum + f = f / self.t / thp_w / deltW /self.expNum err = err2_pix[wave_pos[0] - 1 + i] # err = err/ t / deltW err = np.sqrt(err)/ self.t / deltW/ thp_w /self.expNum -- GitLab