Skip to content

Commit 46c21b0

Browse files
committed
minor cleanup
1 parent f92de8a commit 46c21b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GSASII/GSASIIimage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ def polymask(data,Poly,Spots=[]):
12581258
def MakeMaskMap(data,masks,iLim,jLim):
12591259
'''Makes a mask array from masking parameters that are not determined by
12601260
image calibration parameters or the image intensities. Thus this uses
1261-
mask Frames, Polygons and Lines settings (but not Thresholds, Rings or
1261+
mask Frames, Polygons, Points, and Lines settings (but not Thresholds, Rings or
12621262
Arcs). Used on a rectangular section of an image (must be 1024x1024 or
12631263
smaller) where the size is determined
12641264
by iLim and jLim.
@@ -1276,7 +1276,7 @@ def MakeMaskMap(data,masks,iLim,jLim):
12761276
if iLim[0] == jLim[0] == 0:
12771277
if masks['Frames']:
12781278
frame = np.abs(polymask(data,masks['Frames'])-255) #turn inner to outer mask
1279-
if masks['Polygons']:
1279+
if masks['Polygons'] or masks['Points']:
12801280
poly = polymask(data,masks['Polygons'],masks['Points'])
12811281
if len(frame):
12821282
masks['Pmask'] = frame

0 commit comments

Comments
 (0)