Source: dipy Version: 1.10.0-2 Severity: normal dipy is failing tests with scipy 1.15 from experimental
e.g. https://ci.debian.net/packages/d/dipy/unstable/amd64/57839450/ 1756s FAILED reconst/tests/test_csdeconv.py::test_odfdeconv - AssertionError: 1756s FAILED reconst/tests/test_csdeconv.py::test_default_lambda_csdmodel - Asserti... 1756s FAILED reconst/tests/test_shm.py::test_real_sym_sh_mrtrix - AssertionError: 1756s FAILED reconst/tests/test_shm.py::test_real_sym_sh_basis - AssertionError: 1756s FAILED reconst/tests/test_shm.py::test_real_sh_descoteaux1 - AssertionError: 1756s FAILED reconst/tests/test_shm.py::test_real_sh_tournier - AssertionError: 1756s FAILED reconst/tests/test_shm.py::test_real_sh_descoteaux2 - AssertionError: 1756s FAILED tracking/tests/test_streamline.py::test_set_number_of_points_memory_leaks 1756s FAILED tracking/tests/test_streamline.py::test_length_memory_leaks - Assertio... 1756s = 9 failed, 823 passed, 169 skipped, 42 deselected, 7741897 warnings in 1597.26s (0:26:37) = 1751s ________________________________ test_odfdeconv ________________________________ 1751s 1751s def test_odfdeconv(): 1751s SNR = 100 1751s S0 = 1 1751s 1751s _, fbvals, fbvecs = get_fnames(name="small_64D") 1751s bvals, bvecs = read_bvals_bvecs(fbvals, fbvecs) 1751s gtab = gradient_table(bvals, bvecs=bvecs) 1751s mevals = np.array(([0.0015, 0.0003, 0.0003], [0.0015, 0.0003, 0.0003])) 1751s 1751s angles = [(0, 0), (90, 0)] 1751s S, _ = multi_tensor(gtab, mevals, S0=S0, angles=angles, fractions=[50, 50], snr=SNR) 1751s 1751s sphere = get_sphere(name="symmetric362") 1751s 1751s odf_gt = multi_tensor_odf(sphere.vertices, mevals, angles, [50, 50]) 1751s 1751s e1 = 15.0 1751s e2 = 3.0 1751s ratio = e2 / e1 1751s 1751s with warnings.catch_warnings(): 1751s warnings.filterwarnings( 1751s "ignore", 1751s message=descoteaux07_legacy_msg, 1751s category=PendingDeprecationWarning, 1751s ) 1751s csd = ConstrainedSDTModel(gtab, ratio, reg_sphere=None) 1751s 1751s csd_fit = csd.fit(S) 1751s with warnings.catch_warnings(): 1751s warnings.filterwarnings( 1751s "ignore", 1751s message=descoteaux07_legacy_msg, 1751s category=PendingDeprecationWarning, 1751s ) 1751s fodf = csd_fit.odf(sphere) 1751s 1751s directions, _, _ = peak_directions(odf_gt, sphere) 1751s directions2, _, _ = peak_directions(fodf, sphere) 1751s 1751s ang_sim = angular_similarity(directions, directions2) 1751s 1751s assert_equal(ang_sim > 1.9, True) 1751s 1751s assert_equal(directions.shape[0], 2) 1751s assert_equal(directions2.shape[0], 2) 1751s 1751s with warnings.catch_warnings(record=True) as w: 1751s warnings.simplefilter("always", category=PendingDeprecationWarning) 1751s 1751s ConstrainedSDTModel(gtab, ratio, sh_order_max=10) 1751s w_count = len(w) 1751s # A warning is expected from the ConstrainedSDTModel constructor 1751s # and additional warnings should be raised where legacy SH bases 1751s # are used 1751s assert_equal(w_count > 1, True) 1751s 1751s with warnings.catch_warnings(record=True) as w: 1751s warnings.simplefilter("always", category=PendingDeprecationWarning) 1751s 1751s ConstrainedSDTModel(gtab, ratio, sh_order_max=8) 1751s # Test that the warning from ConstrainedSDTModel 1751s # constructor is no more raised 1751s > assert_equal(len(w) == w_count - 1, True) 1751s E AssertionError: 1751s E Items are not equal: 1751s E ACTUAL: False 1751s E DESIRED: True 1751s 1751s /usr/lib/python3/dist-packages/dipy/reconst/tests/test_csdeconv.py:391: AssertionError