From 7c1121dc71e75d76d76b37dff44e46431bf9a048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Wallk=C3=B6tter?= Date: Sat, 6 Jul 2024 17:44:50 +0200 Subject: [PATCH] remove branch for old numpy version --- test/test_basic.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/test_basic.py b/test/test_basic.py index e7c5764..f9021fe 100644 --- a/test/test_basic.py +++ b/test/test_basic.py @@ -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