diff --git a/CHANGELOG.md b/CHANGELOG.md index ff4c81c8c..9ab9cc680 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ * XX.X - Bug fixes: - Fix deprecation warning for rtol and atol in GD (#2056) + - Removed the deprecated usage of run method in test_SIRF.py (#2070) * 24.3.0 diff --git a/Wrappers/Python/test/test_SIRF.py b/Wrappers/Python/test/test_SIRF.py index 4b9157f73..24e2f73a8 100644 --- a/Wrappers/Python/test/test_SIRF.py +++ b/Wrappers/Python/test/test_SIRF.py @@ -255,8 +255,8 @@ def test_TVdenoisingMR(self): # compare with FISTA algorithm f = 0.5 * L2NormSquared(b=self.image1) - fista = FISTA(initial=self.image1*0.0, f=f, g=TV, max_iteration=10, update_objective_interval=10) - fista.run(verbose=0) + fista = FISTA(initial=self.image1*0.0, f=f, g=TV, update_objective_interval=10) + fista.run(10, verbose=0) np.testing.assert_array_almost_equal(fista.solution.as_array(), res2.as_array(), decimal=3) @@ -533,8 +533,8 @@ def test_SIRF_CIL_MLEM(self): trunc.apply(initial_image) ista = ISTA(initial = initial_image, f = obj_fun, g = IndicatorBox(lower=0.), step_size = -1.0, - preconditioner=sens,update_objective_interval=1, max_iteration=10) - ista.run(verbose=0) + preconditioner=sens,update_objective_interval=1) + ista.run(10, verbose=0) print("adad") np.testing.assert_allclose(ista.solution.as_array()[0], reconstructed_image.as_array()[0], rtol=1e-3)