From b3d38d2324be867f73a1a47de8b54185d86f2a2b Mon Sep 17 00:00:00 2001 From: awatlet <arnaud.watlet@umons.ac.be> Date: Thu, 12 Oct 2023 12:25:46 +0200 Subject: [PATCH] Adds pwr_state on tx to switch dps on and off --- ohmpi/hardware_components/abstract_hardware_components.py | 2 +- ohmpi/hardware_components/mb_2024_0_2.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ohmpi/hardware_components/abstract_hardware_components.py b/ohmpi/hardware_components/abstract_hardware_components.py index b4de1fd7..a3644e47 100644 --- a/ohmpi/hardware_components/abstract_hardware_components.py +++ b/ohmpi/hardware_components/abstract_hardware_components.py @@ -375,8 +375,8 @@ class TxAbstract(ABC): self.pwr.voltage = voltage self.exec_logger.debug(f'Voltage pulse of {polarity * self.pwr.voltage:.3f} V for {length:.3f} s') self.inject(polarity=polarity, injection_duration=length) + @property - @abstractmethod def pwr_state(self): return self._pwr_state diff --git a/ohmpi/hardware_components/mb_2024_0_2.py b/ohmpi/hardware_components/mb_2024_0_2.py index c4fda8cd..970067d3 100644 --- a/ohmpi/hardware_components/mb_2024_0_2.py +++ b/ohmpi/hardware_components/mb_2024_0_2.py @@ -100,7 +100,6 @@ class Tx(Tx_mb_2023): self.pin6.value = False @property - def pwr_state(self): return self._pwr_state -- GitLab