lbl-anp / becquerel

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

add masked fitting functionality #299

Closed jvavrek closed 2 years ago

jvavrek commented 2 years ago

This adds a mask kwarg to the Fitter class, so that we can, for example, mask out the peak and only fit the background:

mask = (x_data < 25) | (x_data > 175)

image

Note that if we had just masked the input data, we would see this instead:

image