From 094dc3931ca4f766b0f4538cbad3db7b09c0ecb2 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Sat, 15 Apr 2023 12:37:03 +0200 Subject: [PATCH] Attempts to fix property issue in TxAbstract init --- hardware/abstract_hardware.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hardware/abstract_hardware.py b/hardware/abstract_hardware.py index 9db4a787..0cae0060 100644 --- a/hardware/abstract_hardware.py +++ b/hardware/abstract_hardware.py @@ -16,6 +16,7 @@ class TxAbstract(ABC): polarity = kwargs.pop('polarity', 1) if polarity is None: polarity = 0 + self._polarity = polarity print(f'polarity: {polarity}') # TODO: delete me inj_time = kwargs.pop('inj_time', 1.) self.exec_logger = kwargs.pop('exec_logger', None) -- GitLab