summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python
diff options
context:
space:
mode:
authorJakob Jorgensen <jakob.jorgensen@manchester.ac.uk>2018-04-24 14:09:15 +0100
committerJakob Jorgensen <jakob.jorgensen@manchester.ac.uk>2018-04-24 14:09:15 +0100
commit2a8138ed73c5a899886499016938ce8970e0ff6e (patch)
tree6a3047647639bcaf85c3df6c8ef7d4f658a0a0dd /Wrappers/Python
parentb2afe5f5d740b5c79556b32ef20a419dbb4366c7 (diff)
downloadastra-wrapper-2a8138ed73c5a899886499016938ce8970e0ff6e.tar.gz
astra-wrapper-2a8138ed73c5a899886499016938ce8970e0ff6e.tar.bz2
astra-wrapper-2a8138ed73c5a899886499016938ce8970e0ff6e.tar.xz
astra-wrapper-2a8138ed73c5a899886499016938ce8970e0ff6e.zip
Fix also argument order in CGLS call.
Diffstat (limited to 'Wrappers/Python')
-rwxr-xr-xWrappers/Python/wip/demo_astra_sophiabeads.py4
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()