Numerically integrate whole area
Added two lines to integrate full area on the request of Oksana and Romain, might be changed back after some more testing, ergo I did not delete the previous code and only change the final result regardless of what the code produces. I find this least invasive, but a bit messy.
This commit is contained in:
parent
ae33ee825e
commit
f5c405bee8
@ -190,7 +190,9 @@ def fitccl(
|
|||||||
print("Maximal integration value lower than minimal")
|
print("Maximal integration value lower than minimal")
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
numfit_min = 0
|
||||||
|
numfit_max = len(x)
|
||||||
count_errors = create_uncertanities(y, y_err)
|
count_errors = create_uncertanities(y, y_err)
|
||||||
# create error vector for numerical integration propagation
|
# create error vector for numerical integration propagation
|
||||||
num_int_area = simps(count_errors[numfit_min:numfit_max], x[numfit_min:numfit_max])
|
num_int_area = simps(count_errors[numfit_min:numfit_max], x[numfit_min:numfit_max])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user