From a325108d39d0ca7efa3d4d19fe6c8712744c568f Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Tue, 10 Oct 2023 15:54:48 +0200 Subject: [PATCH] Searches for run_measurement error --- ohmpi/hardware_components/mb_2023_0_X.py | 1 - ohmpi/hardware_components/mb_2024_0_2.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ohmpi/hardware_components/mb_2023_0_X.py b/ohmpi/hardware_components/mb_2023_0_X.py index 288f5502..ab23d29c 100644 --- a/ohmpi/hardware_components/mb_2023_0_X.py +++ b/ohmpi/hardware_components/mb_2023_0_X.py @@ -156,7 +156,6 @@ class Tx(TxAbstract): @polarity.setter def polarity(self, polarity): - print(f'mcp address : {self.mcp_board._device.device_address}') assert polarity in [-1, 0, 1] self._polarity = polarity if polarity == 1: diff --git a/ohmpi/hardware_components/mb_2024_0_2.py b/ohmpi/hardware_components/mb_2024_0_2.py index 7d22b579..f318c54d 100644 --- a/ohmpi/hardware_components/mb_2024_0_2.py +++ b/ohmpi/hardware_components/mb_2024_0_2.py @@ -64,7 +64,7 @@ class Tx(Tx_mb_2023): def __init__(self, **kwargs): super().__init__(**kwargs) # I2C connexion to MCP23008, for current injection - self.mcp_board = MCP23008(self.connection, address=kwargs['mcp_address']) + # self.mcp_board = MCP23008(self.connection, address=kwargs['mcp_address']) # Initialize LEDs self.pin4 = self.mcp_board.get_pin(4) # Ohmpi_run @@ -81,6 +81,7 @@ class Tx(Tx_mb_2023): Tx_mb_2023.inject(self, polarity=polarity, injection_duration=injection_duration) self.pin6.value = False + class Rx(Rx_mb_2023): def __init__(self, **kwargs): super().__init__(**kwargs) -- GitLab