From 60a021de430ce2b410f9ede03064b1e8588e1db1 Mon Sep 17 00:00:00 2001 From: Joseph H Kennedy Date: Mon, 19 Dec 2022 19:30:36 -0900 Subject: [PATCH] Remove deprecated np.complex alias in ImageLib (#639) --- components/isceobj/Util/ImageUtil/ImageLib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/isceobj/Util/ImageUtil/ImageLib.py b/components/isceobj/Util/ImageUtil/ImageLib.py index 8e6524d..17a04c1 100755 --- a/components/isceobj/Util/ImageUtil/ImageLib.py +++ b/components/isceobj/Util/ImageUtil/ImageLib.py @@ -67,8 +67,8 @@ fnDict = { 'cos': np.cos, #######Current list of constants constDict = { "PI" : np.pi, - "J" : np.complex(0.0, 1.0), - "I" : np.complex(0.0, 1.0), + "J" : 1j, + "I" : 1j, "E" : np.exp(1.0), "NAN" : np.nan, "ROW" : None,