Skip to content

Commit

Permalink
wrap a zip() with list(). Not sure necessary or not
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunius committed Nov 10, 2020
1 parent c3f6334 commit 3645615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipart/utils/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ def getGridsInContour(contour, x, y):
ymax_idx=min(len(y)-1,ymax_idx+3) # enlarge a bit

X2,Y2=np.meshgrid(x[xmin_idx:xmax_idx],y[ymin_idx:ymax_idx])
coords=np.array(zip(X2.flat, Y2.flat))
coords=np.array(list(zip(X2.flat, Y2.flat)))

#------Create a path from vertices------
if ispath:
Expand Down

0 comments on commit 3645615

Please sign in to comment.