Skip to content

Commit 5dc9edb

Browse files
authored
Removing numpy verison warning from zfpy
1 parent a40f0f0 commit 5dc9edb

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

numcodecs/zfpy.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,8 @@
1111
_zfpy_version = tuple(map(int, version("zfpy").split(".")))
1212

1313
if _zfpy_version:
14-
# Check NumPy version
15-
_numpy_version: tuple = tuple(map(int, version("numpy").split('.')))
16-
if _numpy_version >= (2, 0, 0) and _zfpy_version <= (1, 0, 1): # pragma: no cover
17-
_zfpy_version = ()
18-
warnings.warn(
19-
"NumPy version >= 2.0.0 detected. The zfpy library is incompatible with this version of NumPy. "
20-
"Please downgrade to NumPy < 2.0.0 or wait for an update from zfpy.",
21-
UserWarning,
22-
stacklevel=2,
23-
)
24-
else:
25-
with suppress(ImportError):
26-
import zfpy as _zfpy # type: ignore[no-redef]
14+
with suppress(ImportError):
15+
import zfpy as _zfpy
2716

2817
if _zfpy:
2918
import numpy as np

0 commit comments

Comments
 (0)