summaryrefslogtreecommitdiffstats
path: root/samples/python
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2017-11-01 18:09:13 +0100
committerGitHub <noreply@github.com>2017-11-01 18:09:13 +0100
commit40295b83ebaf49f9547a4366e1ebfbff39ea907c (patch)
tree0264de6639f179cad045d30079a023711dc8d2eb /samples/python
parentf70f68fcd465f421b566b199e23e66c1f186b01d (diff)
parent84e163009c10f6ac5631cf5f29a4923852542eaf (diff)
downloadastra-40295b83ebaf49f9547a4366e1ebfbff39ea907c.tar.gz
astra-40295b83ebaf49f9547a4366e1ebfbff39ea907c.tar.bz2
astra-40295b83ebaf49f9547a4366e1ebfbff39ea907c.tar.xz
astra-40295b83ebaf49f9547a4366e1ebfbff39ea907c.zip
Merge pull request #126 from wjp/tests
Add basic tests to check an astra installation
Diffstat (limited to 'samples/python')
-rw-r--r--samples/python/s020_3d_multiGPU.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/python/s020_3d_multiGPU.py b/samples/python/s020_3d_multiGPU.py
index 11a1e11..e872870 100644
--- a/samples/python/s020_3d_multiGPU.py
+++ b/samples/python/s020_3d_multiGPU.py
@@ -28,11 +28,11 @@ import numpy as np
# Set up multi-GPU usage.
# This only works for 3D GPU forward projection and back projection.
-astra.astra.set_gpu_index([0,1])
+astra.set_gpu_index([0,1])
# Optionally, you can also restrict the amount of GPU memory ASTRA will use.
# The line commented below sets this to 1GB.
-#astra.astra.set_gpu_index([0,1], memory=1024*1024*1024)
+#astra.set_gpu_index([0,1], memory=1024*1024*1024)
vol_geom = astra.create_vol_geom(1024, 1024, 1024)