From e0de5993b720c8bbf9d89647e10a44dfbe19e575 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Sun, 30 Apr 2023 16:43:29 +0200 Subject: [PATCH] Removes the default_mux_cabling in hardware system --- hardware_system.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hardware_system.py b/hardware_system.py index ed1f8c3f..b908571c 100644 --- a/hardware_system.py +++ b/hardware_system.py @@ -27,12 +27,6 @@ current_max = np.min([TX_CONFIG['current_max'], np.min([MUX_CONFIG[i].pop('curre voltage_max = np.min([TX_CONFIG['voltage_max'], np.min([MUX_CONFIG[i].pop('voltage_max', np.inf) for i in mux_boards])]) voltage_min = RX_CONFIG['voltage_min'] -default_mux_cabling = {} -for mux in mux_boards: - update_dict(default_mux_cabling, MUX_CONFIG[mux].pop('default_mux_cabling', {})) - -print(f'default_mux_cabling: {default_mux_cabling}') - def elapsed_seconds(start_time): lap = datetime.datetime.utcnow() - start_time return lap.total_seconds() @@ -61,7 +55,7 @@ class OhmPiHardware: data_logger=self.data_logger, soh_logger=self.soh_logger, controller=self.controller)) - self._cabling = kwargs.pop('cabling', default_mux_cabling) + self._cabling = kwargs.pop('cabling', {}) self.mux_boards = kwargs.pop('mux', {'mux_1': mux_module.Mux(id='mux_1', exec_logger=self.exec_logger, data_logger=self.data_logger, -- GitLab