lbl-anp / becquerel

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

Model prefixes must start with the model name #345

Open jvavrek opened 2 years ago

jvavrek commented 2 years ago
model = bq.fitting.GaussModel(prefix="gauss0_") + bq.fitting.GaussModel(prefix="gauss1_")

works fine but

model = bq.fitting.GaussModel(prefix="lo_") + bq.fitting.GaussModel(prefix="hi_")

ends up causing an error when

model.eval(x=x, **params)

is called, even if each of the params is prefixed with "lo" or "hi", e.g., "lo_sigma".