Skip to content

Commit

Permalink
increase range for rebinning (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
daurer authored Dec 15, 2023
1 parent 2ab0bb4 commit 7f41f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ptypy/core/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class PtyScan(object):
doc = Rebinning factor for the raw data frames. ``'None'`` or ``1`` both mean *no binning*
userlevel = 1
lowlim = 1
uplim = 8
uplim = 32
[orientation]
type = int, tuple, list
Expand Down Expand Up @@ -799,7 +799,7 @@ def get_data_chunk(self, chunksize, start=None):
rebin = self.rebin
if rebin <= 1:
pass
elif (rebin in range(2, 6)
elif (rebin in range(2, 32+1)
and (((sh / float(rebin)) % 1) == 0.0).all()):
mask = w > 0
d = u.rebin_2d(d, rebin)
Expand Down

0 comments on commit 7f41f07

Please sign in to comment.