From 9180cfceaecf43c9187f0fdac6e9e4046941daf2 Mon Sep 17 00:00:00 2001 From: Arnaud Watlet <arnaud.watlet@umons.ac.be> Date: Tue, 19 Dec 2023 15:31:54 +0100 Subject: [PATCH] updates hardware system pwr --- ohmpi/hardware_system.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index 2c7a645d..0ebf81c7 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -627,8 +627,8 @@ class OhmPiHardware: polarities = None self._vab_pulses(vab, durations, sampling_rate, polarities=polarities, append=append) self.exec_logger.event(f'OhmPiHardware\tvab_square_wave\tend\t{datetime.datetime.utcnow()}') - if switch_pwr_off: - self.tx.pwr.pwr_state = 'off' + #if switch_pwr_off: + self.tx.pwr.pwr_state = 'off' if switch_tx_pwr_off: self.pwr_state = 'off' @@ -692,8 +692,8 @@ class OhmPiHardware: for i in range(n_pulses): self._vab_pulse(vab=vab, duration=durations[i], sampling_rate=sampling_rate, polarity=polarities[i], append=True) - # if switch_pwr_off: - self.tx.pwr.pwr_state = 'off' + if switch_pwr_off: + self.tx.pwr.pwr_state = 'off' if switch_tx_pwr_off: self.pwr_state = 'off' -- GitLab