peak fitting #68

Merged
usov_i merged 6 commits from JakHolzer-fit_peak into det1d 2020-09-15 14:23:49 +02:00
Showing only changes of commit 946cdafe7c - Show all commits

View File

@ -122,8 +122,8 @@ def fitccl(
num_int_area = simps(y[numfit_min:numfit_max], x[numfit_min:numfit_max])
num_int_bacground = integrate.quad(
background,
numfit_min,
numfit_max,
x[numfit_min],
x[numfit_max],
args=(result.params["slope"].value, result.params["intercept"].value),
)
@ -131,6 +131,7 @@ def fitccl(
for pars in result.params:
d[str(pars)] = (result.params[str(pars)].value, result.params[str(pars)].vary)
d["export_fit"] = False
d["int_area"] = num_int_area
d["int_background"] = num_int_bacground
d["full_report"] = result.fit_report()