From cf8b1812cd45063a98c91375efb7b10d18d9457b Mon Sep 17 00:00:00 2001 From: ggmarshall Date: Mon, 2 Dec 2024 18:23:51 +0100 Subject: [PATCH] adjust error to sampling rate and add units --- src/pygama/pargen/extract_tau.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pygama/pargen/extract_tau.py b/src/pygama/pargen/extract_tau.py index 281c92b46..e6764acdf 100644 --- a/src/pygama/pargen/extract_tau.py +++ b/src/pygama/pargen/extract_tau.py @@ -54,6 +54,7 @@ def get_decay_constant( sampling_rate = wfs["dt"].nda[0] units = wfs["dt"].attrs["units"] tau = f"{tau*sampling_rate}*{units}" + err = f"{err*sampling_rate}*{units}" if "pz" in self.output_dict: self.output_dict["pz"].update({"tau": tau, "tau_err": err})