diff options
-rwxr-xr-x | Wrappers/Python/wip/demo_astra_sophiabeads.py | 4 |
1 files 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() |