Add code for 1D detector #69

Merged
usov_i merged 118 commits from det1d into master 2020-10-22 12:07:50 +02:00
14 changed files with 769 additions and 818 deletions
Showing only changes of commit 52571a1aca - Show all commits

View File

@ -158,7 +158,7 @@ def fitccl(
numfit_max = gauss_3sigmamax if numfit_max is None else find_nearest(x, numfit_max) numfit_max = gauss_3sigmamax if numfit_max is None else find_nearest(x, numfit_max)
it = -1 it = -1
while numfit_max == numfit_min: while abs(numfit_max - numfit_min) < 3:
# in the case the peak is very thin and numerical integration would be on zero omega difference, finds closes values # in the case the peak is very thin and numerical integration would be on zero omega difference, finds closes values
it = it + 1 it = it + 1
numfit_min = find_nearest( numfit_min = find_nearest(