From 6c10e091acd108d9c9d46058b329b54e0b04eb28 Mon Sep 17 00:00:00 2001 From: Andrei Fluerasu Date: Mon, 2 Feb 2026 14:07:39 -0500 Subject: [PATCH 1/2] Removed import instructions of deprecated numpy functions - cast and product --- pyCHX/chx_crosscor.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyCHX/chx_crosscor.py b/pyCHX/chx_crosscor.py index 738be4e..c95d417 100644 --- a/pyCHX/chx_crosscor.py +++ b/pyCHX/chx_crosscor.py @@ -350,7 +350,6 @@ def _centered(img, sz): asarray, atleast_1d, atleast_2d, - cast, dot, exp, expand_dims, @@ -369,7 +368,6 @@ def _centered(img, sz): polysub, polyval, prod, - product, r_, ravel, real_if_close, From cf2a52ca64c18bc531d197a72209fbf37033810b Mon Sep 17 00:00:00 2001 From: Andrei Fluerasu Date: Mon, 2 Feb 2026 14:29:20 -0500 Subject: [PATCH 2/2] Added a simple import test --- pyCHX/tests/test_simpleimport.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 pyCHX/tests/test_simpleimport.py diff --git a/pyCHX/tests/test_simpleimport.py b/pyCHX/tests/test_simpleimport.py new file mode 100644 index 0000000..14d4729 --- /dev/null +++ b/pyCHX/tests/test_simpleimport.py @@ -0,0 +1,3 @@ +def test_import(): + "Check that the main pyCHX imports work" + from pyCHX.chx_packages import *