Skip to content

Commit

Permalink
Discard pixel without weight
Browse files Browse the repository at this point in the history
  • Loading branch information
kif authored Dec 7, 2024
1 parent b23d02a commit 56f6928
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pyFAI/ext/CSR_common.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,9 @@ cdef class CsrIntegrator(object):
for i in range(start, stop):
former_element = element
element = work[i]
if ((qmin<=former_element.s0) and (element.s0 <= qmax)) or \
((qmin>=former_element.s0) and (element.s0 >= qmax)): #specific case where qmin==qmax
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
acc_norm = acc_norm + element.s3
Expand Down

0 comments on commit 56f6928

Please sign in to comment.