From fc735c25019390229c29c807f16c7babc0c2f13a Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Sat, 15 Apr 2023 12:32:27 +0200 Subject: [PATCH] Attempts to fix property issue in TxAbstract init --- hardware/abstract_hardware.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hardware/abstract_hardware.py b/hardware/abstract_hardware.py index 1baf7890..47bf1771 100644 --- a/hardware/abstract_hardware.py +++ b/hardware/abstract_hardware.py @@ -24,10 +24,10 @@ class TxAbstract(ABC): self.soh_logger = kwargs.pop('soh_logger', None) if self.soh_logger is None: self.soh_logger = create_stdout_logger('soh_tx') - self._polarity = None + #self._polarity = polarity self._inj_time = None self._dps_state = 'off' - self._adc_gain = 1. + self.adc_gain = 1. self.polarity = polarity self.inj_time = inj_time self.exec_logger.debug(f'{self.board_name} TX initialization') @@ -131,7 +131,7 @@ class TxAbstract(ABC): self.exec_logger.debug(f'Voltage pulse of {polarity * voltage:.3f} V for {length:.3f} s') self.inject(state='on') time.sleep(length) - self.tx_sync.clear() + # self.tx_sync.clear() self.inject(state='off') -- GitLab