From c9e256936deb6ee77844f6b00a00a5eea426f834 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 7 Dec 2024 20:42:33 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pyFAI/ext/CSR_common.pxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyFAI/ext/CSR_common.pxi b/src/pyFAI/ext/CSR_common.pxi index 101fc64ca..e152bf43a 100644 --- a/src/pyFAI/ext/CSR_common.pxi +++ b/src/pyFAI/ext/CSR_common.pxi @@ -859,8 +859,8 @@ cdef class CsrIntegrator(object): for i in range(start, stop): former_element = element element = work[i] - if ((element.s3!=0) and - (((qmin<=former_element.s0) and (element.s0 <= qmax)) or + if ((element.s3!=0) and + (((qmin<=former_element.s0) and (element.s0 <= qmax)) or ((qmin>=former_element.s0) and (element.s0 >= qmax))): #specific case where qmin==qmax acc_sig = acc_sig + element.s1 acc_var = acc_var + element.s2