Skip to content

Commit

Permalink
Updated deprecated NumPy alias
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 20, 2022
1 parent 66add09 commit a065e02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/test_numpy.py
Expand Up @@ -34,7 +34,7 @@ def to_image(dtype, bands=1, boolean=0):

# Check supported 1-bit integer formats
assert_image(to_image(bool, 1, 1), "1", TEST_IMAGE_SIZE)
assert_image(to_image(numpy.bool8, 1, 1), "1", TEST_IMAGE_SIZE)
assert_image(to_image(numpy.bool_, 1, 1), "1", TEST_IMAGE_SIZE)

# Check supported 8-bit integer formats
assert_image(to_image(numpy.uint8), "L", TEST_IMAGE_SIZE)
Expand Down Expand Up @@ -193,7 +193,7 @@ def test_putdata():
"dtype",
(
bool,
numpy.bool8,
numpy.bool_,
numpy.int8,
numpy.int16,
numpy.int32,
Expand Down

0 comments on commit a065e02

Please sign in to comment.