From 73cc422dc62b48387f569ea4c90fdbe4b8917b01 Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Thu, 8 Jun 2023 16:05:57 +0200
Subject: [PATCH] Implements using several mux_boards (cf. issue #107)

---
 configs/config_mb_2023_2_mux_2024.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/configs/config_mb_2023_2_mux_2024.py b/configs/config_mb_2023_2_mux_2024.py
index 2d380426..46c6a2c6 100644
--- a/configs/config_mb_2023_2_mux_2024.py
+++ b/configs/config_mb_2023_2_mux_2024.py
@@ -41,8 +41,8 @@ HARDWARE_CONFIG = {
                           'tca_channel': 0,
                           'mcp_0': '0x22',  # TODO : Replace this with pos of jumper on MUX board (address doesn't mean anything for the average user...
                           'mcp_1': '0x23',  # TODO : Replace this with pos of jumper on MUX board (address doesn't mean anything for the average user...)
-                          'roles': {'A': 'X', 'B': 'Y', 'M' : 'XX', 'N' : 'YY'},
-                          'cabling': {(i, j): ('mux_1', i) for j in ['A', 'B', 'M', 'N'] for i in range(1,9)},
+                          'roles': {'A': 'X', 'B': 'Y', 'M': 'XX', 'N': 'YY'},
+                          'cabling': {(i, j): ('mux_1', i) for j in ['A', 'B', 'M', 'N'] for i in range(1, 9)},
                           'voltage_max': 12.},
                      'mux_2':
                          {'model': 'mux_2024_rev_0_0',  # 'ohmpi_i2c_mux64_v1.01',
@@ -50,10 +50,10 @@ HARDWARE_CONFIG = {
                           'tca_channel': 0,
                           'mcp_0': '0x24',  # TODO : Replace this with pos of jumper on MUX board (address doesn't mean anything for the average user...
                           'mcp_1': '0x25',  # TODO : Replace this with pos of jumper on MUX board (address doesn't mean anything for the average user...)
-                          'roles': {'A': 'X', 'B': 'Y', 'M' : 'XX', 'N' : 'YY'},
-                          'cabling': {(i+8, j): ('mux_2', i) for j in ['A', 'B', 'M', 'N'] for i in range(1,9)},
+                          'roles': {'A': 'X', 'B': 'Y', 'M': 'XX', 'N': 'YY'},
+                          'cabling': {(i+8, j): ('mux_2', i) for j in ['A', 'B', 'M', 'N'] for i in range(1, 9)},
                           'voltage_max': 12.}
-                    },
+                     },
              'default': {'voltage_max': 100.,
                          'current_max': 3.}
              }
-- 
GitLab