From 2a8138ed73c5a899886499016938ce8970e0ff6e Mon Sep 17 00:00:00 2001 From: Jakob Jorgensen Date: Tue, 24 Apr 2018 14:09:15 +0100 Subject: Fix also argument order in CGLS call. --- Wrappers/Python/wip/demo_astra_sophiabeads.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wrappers/Python/wip/demo_astra_sophiabeads.py b/Wrappers/Python/wip/demo_astra_sophiabeads.py index 4a0f963..d8100ea 100755 --- a/Wrappers/Python/wip/demo_astra_sophiabeads.py +++ b/Wrappers/Python/wip/demo_astra_sophiabeads.py @@ -65,8 +65,8 @@ Aop = AstraProjectorSimple(ig2d, ag2d,"gpu") x_init = ImageData(np.zeros((N,N)),geometry=ig2d) # Run 50-iteration CGLS reconstruction -num_iter = 50 -x, it, timing, criter = CGLS(Aop,data2d,num_iter,x_init) +opt = {'tol': 1e-4, 'iter': 100} +x, it, timing, criter = CGLS(x_init,Aop,data2d,opt=opt) # Display reconstruction plt.figure() -- cgit v1.2.3