lbl-anp / becquerel

Becquerel is a Python package for analyzing nuclear spectroscopic measurements.
Other
43 stars 16 forks source link

Livetime fraction in IsotopeQuantity #321

Open jvavrek opened 2 years ago

jvavrek commented 2 years ago

We can create an IsotopeQuantity from a number of observed decays plus a start and stop time. However if the detector isn't operating at 100% livetime, the assay time needs to be corrected for the livetime fraction.

Currently one can do

qty = bq.IsotopeQuantity.from_decays(...)
qty /= livetime_frac

but maybe we could add a livetime_frac kwarg to from_decays() or other methods.