From c6e4ab548df8b8938dbce2c8633be13030849b7b Mon Sep 17 00:00:00 2001 From: Martin Killenberg <martin.killenberg@desy.de> Date: Mon, 16 Jan 2023 14:45:22 +0100 Subject: [PATCH] fix wrong indentation when calculating equilibrium indicator --- Python_script/prototype.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Python_script/prototype.py b/Python_script/prototype.py index ed80793..2f59f42 100755 --- a/Python_script/prototype.py +++ b/Python_script/prototype.py @@ -200,14 +200,14 @@ class Measurements: print('Measurement not stable. Retrying.') break - for measurement in supposedly_stable_measurements: - if all_measurements_stable: - measurement['EQUILIBRIUM_INDICATOR'] = TEMPERATURE_STABLE | HUMIDITY_STABLE |\ - MAGNITUDE_STABLE | PHASE_STABLE |\ - MEASUREMENT_STABLE - do_another_measurement = False - - writer.writerow(measurement) + for measurement in supposedly_stable_measurements: + if all_measurements_stable: + measurement['EQUILIBRIUM_INDICATOR'] = TEMPERATURE_STABLE | HUMIDITY_STABLE |\ + MAGNITUDE_STABLE | PHASE_STABLE |\ + MEASUREMENT_STABLE + do_another_measurement = False + + writer.writerow(measurement) def sleep_until(self, wakeup_time): remaining_sleep_time = wakeup_time - self.clock.time() -- GitLab