[change] slope normalized to maximum y value, TESTING NEEDED

This commit is contained in:
Marcel Paffrath 2018-07-06 10:36:38 +02:00
parent 871fb685a4
commit 1f2dd689ba

View File

@ -305,6 +305,8 @@ class AICPicker(AutoPicker):
print('AICPicker: Negative slope, bad onset skipped!') print('AICPicker: Negative slope, bad onset skipped!')
else: else:
self.slope = 1 / (len(dataslope) * self.Data[0].stats.delta) * (datafit[-1] - datafit[0]) self.slope = 1 / (len(dataslope) * self.Data[0].stats.delta) * (datafit[-1] - datafit[0])
# normalize slope to maximum of cf to make it unit independent
self.slope /= self.Data[0].data[icfmax]
else: else:
self.SNR = None self.SNR = None