From dd498faca09189fe7d1216479a5888f2857f92bc Mon Sep 17 00:00:00 2001
From: Martin Teichmann <martin.teichmann@xfel.eu>
Date: Thu, 10 Nov 2022 14:42:45 +0100
Subject: [PATCH] remove mean sustraction in integration

that was a quick hack that should not be done, background subtraction is
the way to go.
---
 src/toolbox_scs/detectors/hrixs.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/toolbox_scs/detectors/hrixs.py b/src/toolbox_scs/detectors/hrixs.py
index 8296652..6a950a2 100644
--- a/src/toolbox_scs/detectors/hrixs.py
+++ b/src/toolbox_scs/detectors/hrixs.py
@@ -257,7 +257,6 @@ def parabola(x, a, b, c=0):
 
 
 def integrate(image, factor=FACTOR, range=RANGE, curvature=(CURVE_A, CURVE_B), ):
-    image = image - image.mean()
     x = np.arange(image.shape[1])[None, :]
     y = np.arange(image.shape[0])[:, None]
     ys = factor * (y - parabola(x, curvature[1], curvature[0]))
-- 
GitLab