Skip to content

Commit

Permalink
adjust error to sampling rate and add units
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmarshall committed Dec 2, 2024
1 parent 3f69abb commit cf8b181
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pygama/pargen/extract_tau.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit cf8b181

Please sign in to comment.