diff --git a/hardware_components/abstract_hardware_components.py b/hardware_components/abstract_hardware_components.py index 090e020b957b53e1613ca48f790f36e9a62d430f..c92ce3064329e357ce117ce71b5f83a21cd71ed5 100644 --- a/hardware_components/abstract_hardware_components.py +++ b/hardware_components/abstract_hardware_components.py @@ -55,7 +55,7 @@ class MuxAbstract(ABC): self.cabling.update({k: (v[1], k[1])}) self.exec_logger.debug(f'{self.board_id} cabling: {self.cabling}') self.addresses = kwargs.pop('addresses', None) - self.barrier = kwargs.pop('barrier', Barrier(1)) + self._barrier = kwargs.pop('barrier', Barrier(1)) @abstractmethod def _get_addresses(self): @@ -67,12 +67,12 @@ class MuxAbstract(ABC): @property def barrier(self): - return self.barrier + return self._barrier @barrier.setter def barrier(self, value): assert isinstance(value, Barrier) - self.barrier = value + self._barrier = value def switch(self, elec_dict=None, state='on'): """Switch a given list of electrodes with different roles.