Skip to content

Commit

Permalink
Merge pull request #73 from giovp/master
Browse files Browse the repository at this point in the history
handle 0-index simplex in delaunay
  • Loading branch information
ljwolf authored May 7, 2021
2 parents 0ca9085 + 5913c99 commit e694fb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pointpats/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _(shape: spatial.Delaunay, x: float, y: float):
If the returned simplex index is -1, then the point is not
within a simplex of the triangulation.
"""
return shape.find_simplex((x, y)) > 0
return shape.find_simplex((x, y)) >= 0


@contains.register
Expand Down
2 changes: 1 addition & 1 deletion pointpats/ripley.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _(shape: spatial.Delaunay, x: float, y: float):
If the returned simplex index is -1, then the point is not
within a simplex of the triangulation.
"""
return shape.find_simplex((x, y)) > 0
return shape.find_simplex((x, y)) >= 0


@_contains.register
Expand Down

0 comments on commit e694fb9

Please sign in to comment.