Commit fc735c25 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Attempts to fix property issue in TxAbstract init

Showing with 3 additions and 3 deletions
+3 -3
...@@ -24,10 +24,10 @@ class TxAbstract(ABC): ...@@ -24,10 +24,10 @@ class TxAbstract(ABC):
self.soh_logger = kwargs.pop('soh_logger', None) self.soh_logger = kwargs.pop('soh_logger', None)
if self.soh_logger is None: if self.soh_logger is None:
self.soh_logger = create_stdout_logger('soh_tx') self.soh_logger = create_stdout_logger('soh_tx')
self._polarity = None #self._polarity = polarity
self._inj_time = None self._inj_time = None
self._dps_state = 'off' self._dps_state = 'off'
self._adc_gain = 1. self.adc_gain = 1.
self.polarity = polarity self.polarity = polarity
self.inj_time = inj_time self.inj_time = inj_time
self.exec_logger.debug(f'{self.board_name} TX initialization') self.exec_logger.debug(f'{self.board_name} TX initialization')
...@@ -131,7 +131,7 @@ class TxAbstract(ABC): ...@@ -131,7 +131,7 @@ class TxAbstract(ABC):
self.exec_logger.debug(f'Voltage pulse of {polarity * voltage:.3f} V for {length:.3f} s') self.exec_logger.debug(f'Voltage pulse of {polarity * voltage:.3f} V for {length:.3f} s')
self.inject(state='on') self.inject(state='on')
time.sleep(length) time.sleep(length)
self.tx_sync.clear() # self.tx_sync.clear()
self.inject(state='off') self.inject(state='off')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment