Harmonize PDF background cut

This commit is contained in:
Noe Brucy
2020-11-02 11:57:31 +01:00
parent d2ff1f9242
commit e0ce6729af
+1 -1
View File
@@ -926,7 +926,7 @@ class PostProcessor(HDF5Container):
mask_fit = (
(centers > self.pp_params.pdf.xmin_fit)
& (centers < self.pp_params.pdf.xmax_fit)
& (values > 0)
& (values > self.pp_params.pdf.fit_cut * np.max(values))
)
(slope, origin, correlation, _, stderr) = linregress(
centers[mask_fit], np.log10(values[mask_fit])