Skip to content

Commit

Permalink
Update polygon_ext.pyx
Browse files Browse the repository at this point in the history
Fixing Python2 print statement, as latest cython interprets language_level as 3 as an default.
  • Loading branch information
samcom12 committed Jul 25, 2023
1 parent 0c35bab commit 25988b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anuga/geometry/polygon_ext.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def _separate_points_by_polygon(np.ndarray[double, ndim=2, mode="c"] points not
N = polygon.shape[0]

if verbose:
print "Got %d points and %d polygon vertices" % (M,N)
print ("Got %d points and %d polygon vertices") % (M,N)

count = __separate_points_by_polygon(M, N, &points[0,0], &polygon[0,0], &indices[0], closed, verbose)

return count
return count

0 comments on commit 25988b5

Please sign in to comment.