File: scipy-1.16.patch

package info (click to toggle)
nibabel 5.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 69,232 kB
  • sloc: python: 39,851; makefile: 276; ansic: 202; sh: 99
file content (29 lines) | stat: -rw-r--r-- 1,500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: fix test failures with scipy 1.16.
Author: Étienne Mollier <emollier@debian.org>
Bug: https://github.com/nipy/nibabel/issues/1428
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1109953
Last-Update: 2025-10-24
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- nibabel.orig/nibabel/tests/test_processing.py
+++ nibabel/nibabel/tests/test_processing.py
@@ -169,8 +169,7 @@
     exp_out[1:, :, :] = data[1, :, :]
     assert_almost_equal(out.dataobj, exp_out)
     out = resample_from_to(img, trans_p_25_img)
-    with pytest.warns(UserWarning):  # Suppress scipy warning
-        exp_out = spnd.affine_transform(data, [1, 1, 1], [-0.25, 0, 0], order=3)
+    exp_out = spnd.affine_transform(data, [1, 1, 1], [-0.25, 0, 0], order=3)
     assert_almost_equal(out.dataobj, exp_out)
     # Test cval
     out = resample_from_to(img, trans_img, cval=99)
@@ -275,8 +274,7 @@
     assert_array_equal(out_img.dataobj, np.flipud(data))
     # Subsample voxels
     out_img = resample_to_output(Nifti1Image(data, np.diag([4, 5, 6, 1])))
-    with pytest.warns(UserWarning):  # Suppress scipy warning
-        exp_out = spnd.affine_transform(data, [1 / 4, 1 / 5, 1 / 6], output_shape=(5, 11, 19))
+    exp_out = spnd.affine_transform(data, [1 / 4, 1 / 5, 1 / 6], output_shape=(5, 11, 19))
     assert_array_equal(out_img.dataobj, exp_out)
     # Unsubsample with voxel sizes
     out_img = resample_to_output(Nifti1Image(data, np.diag([4, 5, 6, 1])), [4, 5, 6])