numpy.array(..., copy=False) -> numpy.asarray(...)
For numpy 2.0
This commit is contained in:
parent
8fd6896a71
commit
ad0adec8e8
1 changed files with 13 additions and 13 deletions
|
|
@ -73,8 +73,8 @@ def poly_contains_points(
|
|||
Returns:
|
||||
ndarray of booleans, [point0_is_in_shape, point1_is_in_shape, ...]
|
||||
"""
|
||||
points = numpy.array(points, copy=False)
|
||||
vertices = numpy.array(vertices, copy=False)
|
||||
points = numpy.asarray(points, dtype=float)
|
||||
vertices = numpy.asarray(vertices, dtype=float)
|
||||
|
||||
if points.size == 0:
|
||||
return numpy.zeros(0, dtype=numpy.int8)
|
||||
|
|
|
|||
Loading…
Reference in a new issue