From b6258e45ebb32c66d76c065267e5f1a7253dcaab Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de>
Date: Sat, 1 Aug 2020 10:41:42 +0200
Subject: [PATCH] PyCore/polmagcylinders2.py: print progress messages

---
 Tests/Functional/Python/PyCore/polmagcylinders2.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/Tests/Functional/Python/PyCore/polmagcylinders2.py b/Tests/Functional/Python/PyCore/polmagcylinders2.py
index c1dbb2006d5..029bdf3c9bb 100644
--- a/Tests/Functional/Python/PyCore/polmagcylinders2.py
+++ b/Tests/Functional/Python/PyCore/polmagcylinders2.py
@@ -14,6 +14,7 @@ REFERENCE_DIR = "@TEST_REFERENCE_DIR@/Core"
 # describe sample and run simulation
 # ----------------------------------
 def getSimulationIntensity(rho_beam, efficiency):
+    print("- simulate", flush=True)
     # defining materials
     mAmbience = HomogeneousMaterial("Air", 0.0, 0.0)
     mSubstrate = HomogeneousMaterial("Substrate", 15e-6, 0.0)
@@ -48,6 +49,7 @@ def getSimulationIntensity(rho_beam, efficiency):
     simulation.setSample(multi_layer)
     simulation.setBeamIntensity(1e9)
     simulation.runSimulation()
+    print("- - simulation done", flush=True)
     return simulation.result()
 
 
@@ -56,12 +58,17 @@ def get_reference_data(filename):
     """
     read and return reference data from file
     """
-    return IntensityDataIOFactory.readIntensityData(os.path.join(REFERENCE_DIR,filename))
+    path = os.path.join(REFERENCE_DIR,filename)
+    print("- read reference from", path, flush=True)
+    ret = IntensityDataIOFactory.readIntensityData(path)
+    print("- - reference read", flush=True)
+    return ret
 
 # --------------------------------------------------------------
 # run test and analyse test results
 # --------------------------------------------------------------
 def run_test():
+    print("run test", flush=True)
     zplus = kvector_t(0.0, 0.0, 1.0)
     zmin = kvector_t(0.0, 0.0, -1.0)
 
-- 
GitLab