Blame 0002-feat-do-not-use-deprecated-np.complex.patch

d5a43eb
From 61c5a608a6511eb9683ec2d28461cd0151277053 Mon Sep 17 00:00:00 2001
d5a43eb
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
d5a43eb
Date: Tue, 6 Jul 2021 14:31:42 +0100
d5a43eb
Subject: [PATCH 2/3] feat: do not use deprecated np.complex
d5a43eb
d5a43eb
---
d5a43eb
 pymatreader/utils.py | 2 +-
d5a43eb
 1 file changed, 1 insertion(+), 1 deletion(-)
d5a43eb
d5a43eb
diff --git a/pymatreader/utils.py b/pymatreader/utils.py
d5a43eb
index d6c5b64..ecfa842 100644
d5a43eb
--- a/pymatreader/utils.py
d5a43eb
+++ b/pymatreader/utils.py
d5a43eb
@@ -167,7 +167,7 @@ def _handle_ndarray(values):
d5a43eb
     values = numpy.squeeze(values).T
d5a43eb
     if (isinstance(values, numpy.ndarray) and
d5a43eb
             values.dtype.names == ('real', 'imag')):
d5a43eb
-        values = numpy.array(values.view(numpy.complex))
d5a43eb
+        values = numpy.array(values.view(complex))
d5a43eb
 
d5a43eb
     if isinstance(values, numpy.ndarray) and \
d5a43eb
             values.size == 1:
d5a43eb
-- 
d5a43eb
2.31.1
d5a43eb