Skip to content

Commit 1c56202

Browse files
committed
mask on reciprocal space is greater than not greater than equal
1 parent 37fc5e5 commit 1c56202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffpy/fourigui/fourigui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def applycutoff(self):
484484
r2_outer = qmax**2
485485
i, j, k = np.meshgrid(np.arange(xdim), np.arange(ydim), np.arange(zdim))
486486
r2 = (i - xdim // 2) ** 2 + (j - ydim // 2) ** 2 + (k - zdim // 2) ** 2
487-
mask = (r2 <= r2_inner) | (r2 >= r2_outer) # True if voxel is out of range
487+
mask = (r2 < r2_inner) | (r2 > r2_outer) # True if voxel is out of range
488488
sphere[mask] = np.nan # therefore set to np.nan if out of range
489489

490490
if self.space.get():

0 commit comments

Comments
 (0)