From 5d072b4c4a5daa5935b728bc79844878ac869f6a Mon Sep 17 00:00:00 2001 From: Caden Myers Date: Fri, 8 Nov 2024 14:35:13 -0500 Subject: [PATCH 1/3] specify axes for numpy deprecation --- src/diffpy/fourigui/fourigui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/diffpy/fourigui/fourigui.py b/src/diffpy/fourigui/fourigui.py index 219a87b..c3c632d 100755 --- a/src/diffpy/fourigui/fourigui.py +++ b/src/diffpy/fourigui/fourigui.py @@ -394,8 +394,9 @@ def fft(self): def perform_fft(fftholder): fftholder = np.nan_to_num(fftholder) size = list(fftholder.shape) + axes = list(range(fftholder.ndim)) fftholder = np.fft.ifftshift(fftholder) - fftholder = np.fft.fftn(fftholder, s=size, norm="ortho") + fftholder = np.fft.fftn(fftholder, s=size, axes=axes, norm="ortho") fftholder = np.fft.fftshift(fftholder) fftholder = fftholder.real return fftholder From 233f6e1318a80fd82f15be0de244a1e818997a13 Mon Sep 17 00:00:00 2001 From: Caden Myers Date: Fri, 8 Nov 2024 14:37:04 -0500 Subject: [PATCH 2/3] news --- news/numpy_dep.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 news/numpy_dep.rst diff --git a/news/numpy_dep.rst b/news/numpy_dep.rst new file mode 100644 index 0000000..883e78f --- /dev/null +++ b/news/numpy_dep.rst @@ -0,0 +1,23 @@ +**Added:** + +* + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* Fixed deprecation warning presented by numpy2 + +**Security:** + +* From ad41ea3e9847ec6178adc8286cbcbb3819a1b4c6 Mon Sep 17 00:00:00 2001 From: Caden Myers Date: Fri, 8 Nov 2024 16:16:33 -0500 Subject: [PATCH 3/3] re-run CI for codecov report