From 1c16f46f184a94cfa4aa28a56cf1014372ac7e51 Mon Sep 17 00:00:00 2001
From: Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>
Date: Thu, 28 Oct 2021 13:36:59 +0200
Subject: Display version in astra.test()

---
 python/astra/tests.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'python')

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()
-- 
cgit v1.2.3