Skip to content

Commit

Permalink
[IO-603][external] Update to work with current versions of NumPy (#13)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
owencjones and Owen Jones committed Mar 14, 2023
1 parent f28b0d4 commit c1f9cf1
Show file tree
Hide file tree
Showing 6 changed files with 2,893 additions and 2,789 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ build/

*.egg-info
*.so

.venv
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
numpy<=1.23.0
numpy
2 changes: 1 addition & 1 deletion tests/test_draw_polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ def test_supports_int32():


def test_supports_float():
mask = np.zeros(triangle_mask_size, dtype=np.float)
mask = np.zeros(triangle_mask_size, dtype=np.floating)
draw_polygon(mask, [triangle], 1)
assert np.all(mask == triangle_result)
Loading

0 comments on commit c1f9cf1

Please sign in to comment.