Skip to content

Commit c1f9cf1

Browse files
owencjonesOwen Jones
and
Owen Jones
authored
[IO-603][external] Update to work with current versions of NumPy (#13)
* Update to allow Upolygon to work with current numpy versions * Tests fix, weirdly didn't fail locally * The actual test fix --------- Co-authored-by: Owen Jones <owen@v7labs.com>
1 parent f28b0d4 commit c1f9cf1

File tree

6 files changed

+2893
-2789
lines changed

6 files changed

+2893
-2789
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ build/
44

55
*.egg-info
66
*.so
7+
8+
.venv

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
numpy<=1.23.0
1+
numpy

tests/test_draw_polygon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,6 @@ def test_supports_int32():
158158

159159

160160
def test_supports_float():
161-
mask = np.zeros(triangle_mask_size, dtype=np.float)
161+
mask = np.zeros(triangle_mask_size, dtype=np.floating)
162162
draw_polygon(mask, [triangle], 1)
163163
assert np.all(mask == triangle_result)

0 commit comments

Comments
 (0)