Skip to content

Commit

Permalink
remove branch for old numpy version
Browse files Browse the repository at this point in the history
  • Loading branch information
FirefoxMetzger committed Jul 6, 2024
1 parent 2183f74 commit 7c1121d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,6 @@ def save(path, im):
imageio.v3.imwrite(path, im)

def print_stats(rgb):
# np.min supports axis tuple from 1.10
from packaging.version import Version
if Version(np.__version__) <= Version('1.10'):
return
print(rgb.dtype,
np.min(rgb, axis=(0,1)), np.max(rgb, axis=(0,1)), # range for each channel
[len(np.unique(rgb[:,:,0])), len(np.unique(rgb[:,:,1])), len(np.unique(rgb[:,:,2]))], # unique values
Expand Down

0 comments on commit 7c1121d

Please sign in to comment.