From 1c1af6b7a6a645eaa790cc2b893820430661a141 Mon Sep 17 00:00:00 2001 From: Isaac Gresham Date: Wed, 3 May 2023 08:47:48 +1000 Subject: [PATCH] Compatibility with numpy 1.24 numpy.complex is depreciated (since numpy 1.20) and its use now throws an error (since numpy 1.24). Error advises that the built-in function "complex" behaves identically. This commit replaces "numpy.complex" with "complex" --- igor/binarywave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/igor/binarywave.py b/igor/binarywave.py index 6d87d14..4ccc3d3 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:complex, #_numpy.complex is depreciated as of 1.20, using inbuilt. 2:_numpy.float32, # NT_FP32, 32 bit fp numbers. 3:_numpy.complex64, 4:_numpy.float64, # NT_FP64, 64 bit fp numbers.