From a2a7d3af705d8e2bb9e9aa86996a4fc3decbd858 Mon Sep 17 00:00:00 2001 From: Martin Killenberg <martin.killenberg@desy.de> Date: Fri, 14 Oct 2022 17:26:03 +0200 Subject: [PATCH] add status printout during stable measurements --- Python_script/prototype.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Python_script/prototype.py b/Python_script/prototype.py index 9f3f782..bdd22a9 100755 --- a/Python_script/prototype.py +++ b/Python_script/prototype.py @@ -165,12 +165,14 @@ class Measurements: (phase <= reference_phase+self.max_delta_phase) supposedly_stable_measurements.append([data, self.cook_up_equi_indicator()]) - + if (self.temperature_stable and self.humidity_stable and self.magnitude_stable and self.phase_stable): + print('Stable measurement ' + str(i+1) + '/' + str(next_reads)) self.clock.sleep(self.sleep_time) else: all_measurements_stable = False + print('Measurement not stable. Retrying.') break for [d, measurement_equi] in supposedly_stable_measurements: -- GitLab