From 77ec288792d01d733c34421b7897c30e3b53fb5e Mon Sep 17 00:00:00 2001 From: Markus Sifft Date: Mon, 4 Dec 2023 12:16:51 +0100 Subject: [PATCH] updated error estimation for calc_spec_poisson --- src/signalsnap/spectrum_calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signalsnap/spectrum_calculator.py b/src/signalsnap/spectrum_calculator.py index 9af48d7..9539c47 100644 --- a/src/signalsnap/spectrum_calculator.py +++ b/src/signalsnap/spectrum_calculator.py @@ -1667,7 +1667,7 @@ def calc_spec_poisson(self, n_reps=10, for i in orders: self.S[i] = sum([S[i] for S in all_S]) / n_reps - self.S_err[i] = np.sqrt(sum([S_err[i]**2 for S_err in all_S_err])) / n_reps + self.S_err[i] = sum([S_err[i] for S_err in all_S_err]) / n_reps return self.freq, self.S, self.S_err