From 16dd6b45f4d122df964474b64abcdca60d7810ef Mon Sep 17 00:00:00 2001 From: Andreas Dutzler Date: Tue, 18 Jun 2024 13:26:28 +0200 Subject: [PATCH] Fixes for NumPy 2.0 --- src/matadi/__about__.py | 2 +- src/matadi/_apply.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matadi/__about__.py b/src/matadi/__about__.py index 3ced358..b5fdc75 100644 --- a/src/matadi/__about__.py +++ b/src/matadi/__about__.py @@ -1 +1 @@ -__version__ = "0.2.1" +__version__ = "0.2.2" diff --git a/src/matadi/_apply.py b/src/matadi/_apply.py index fbcdd75..7a80311 100644 --- a/src/matadi/_apply.py +++ b/src/matadi/_apply.py @@ -29,7 +29,7 @@ def rshape(z): parallel = () # map function `N` times on reshaped input - N = np.product(ax) + N = np.prod(ax) out = fun.map(N, *parallel)(*y) if not isinstance(out, tuple):