From 285bef17018bf89e0e09773a3ab32ea38e4231b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaquier=20Aur=C3=A9lien=20Tristan?=
<aurelien.jaquier@epfl.ch>
Date: Tue, 20 Dec 2022 11:35:51 +0100
Subject: [PATCH] numpy.complex -> numpy.complex for numpy 1.20 compatibility
---
igor/binarywave.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/igor/binarywave.py b/igor/binarywave.py
index 6d87d14..10e81b9 100644
--- a/igor/binarywave.py
+++ b/igor/binarywave.py
@@ -107,7 +107,7 @@ class NullStaticStringField (StaticStringField):
# From IgorMath.h
TYPE_TABLE = { # (key: integer flag, value: numpy dtype)
0:None, # Text wave, not handled in ReadWave.c
- 1:_numpy.complex, # NT_CMPLX, makes number complex.
+ 1:_numpy.complex_,# NT_CMPLX, makes number complex.
2:_numpy.float32, # NT_FP32, 32 bit fp numbers.
3:_numpy.complex64,
4:_numpy.float64, # NT_FP64, 64 bit fp numbers.