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:
JakHolzer 2020-12-18 15:40:37 +01:00 committed by GitHub
parent ae33ee825e
commit f5c405bee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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])