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

Tries to implement switch_on in mux_2024

Showing with 3 additions and 1 deletion
+3 -1
...@@ -114,7 +114,9 @@ class Mux(MuxAbstract): ...@@ -114,7 +114,9 @@ class Mux(MuxAbstract):
self.exec_logger.debug(f'configuration: {MUX_CONFIG}') self.exec_logger.debug(f'configuration: {MUX_CONFIG}')
self._tca_address = kwargs.pop('tca_address', None) self._tca_address = kwargs.pop('tca_address', None)
self._tca_channel = kwargs.pop('tca_channel', 0) self._tca_channel = kwargs.pop('tca_channel', 0)
self._roles = kwargs.pop(('roles', {'X': 'A', 'Y': 'B', 'XX': 'M', 'YY': 'N'})) self._roles = kwargs.pop('roles', None)
if self._roles is None:
self._roles = {'X': 'A', 'Y': 'B', 'XX': 'M', 'YY': 'N'}
if np.alltrue([j in self._roles for j in set([i[1] for i in list(inner_cabling['4_roles'].keys())])]): if np.alltrue([j in self._roles for j in set([i[1] for i in list(inner_cabling['4_roles'].keys())])]):
self._mode = '4_roles' self._mode = '4_roles'
elif np.alltrue([j in self._roles for j in set([i[1] for i in list(inner_cabling['2_roles'].keys())])]): elif np.alltrue([j in self._roles for j in set([i[1] for i in list(inner_cabling['2_roles'].keys())])]):
......
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