summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2021-10-28 13:36:59 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2021-10-28 13:36:59 +0200
commit1c16f46f184a94cfa4aa28a56cf1014372ac7e51 (patch)
tree5043cac3f5693aaddb7eefc5c278537b092dcf0e
parentf630c7926a45e1dfe16784f94f1efe00128b28ad (diff)
downloadastra-1c16f46f184a94cfa4aa28a56cf1014372ac7e51.tar.gz
astra-1c16f46f184a94cfa4aa28a56cf1014372ac7e51.tar.bz2
astra-1c16f46f184a94cfa4aa28a56cf1014372ac7e51.tar.xz
astra-1c16f46f184a94cfa4aa28a56cf1014372ac7e51.zip
Display version in astra.test()
-rw-r--r--matlab/tools/astra_test.m1
-rw-r--r--python/astra/tests.py7
2 files changed, 6 insertions, 2 deletions
diff --git a/matlab/tools/astra_test.m b/matlab/tools/astra_test.m
index 479b7d1..52d7b01 100644
--- a/matlab/tools/astra_test.m
+++ b/matlab/tools/astra_test.m
@@ -11,6 +11,7 @@
% Website: http://www.astra-toolbox.com/
%--------------------------------------------------------------------------
+astra_mex('version');
if astra_mex('use_cuda')
astra_test_CUDA;
else
diff --git a/python/astra/tests.py b/python/astra/tests.py
index d438b08..19b42d0 100644
--- a/python/astra/tests.py
+++ b/python/astra/tests.py
@@ -79,15 +79,18 @@ def _basic_par3d_cuda():
def test_noCUDA():
"""Perform a very basic functionality test, without CUDA"""
-
+
+ import astra
+ print("ASTRA Toolbox v%s" % (astra.__version__,))
ok = _basic_par2d()
if not ok:
raise RuntimeError("Test failed")
def test_CUDA():
"""Perform a very basic functionality test, including CUDA"""
-
+
import astra
+ print("ASTRA Toolbox v%s" % (astra.__version__,))
print("Getting GPU info... ", end="")
print(astra.get_gpu_info())
ok1 = _basic_par2d()