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

Searches for run_measurement error

Showing with 2 additions and 2 deletions
+2 -2
...@@ -156,7 +156,6 @@ class Tx(TxAbstract): ...@@ -156,7 +156,6 @@ class Tx(TxAbstract):
@polarity.setter @polarity.setter
def polarity(self, polarity): def polarity(self, polarity):
print(f'mcp address : {self.mcp_board._device.device_address}')
assert polarity in [-1, 0, 1] assert polarity in [-1, 0, 1]
self._polarity = polarity self._polarity = polarity
if polarity == 1: if polarity == 1:
......
...@@ -64,7 +64,7 @@ class Tx(Tx_mb_2023): ...@@ -64,7 +64,7 @@ class Tx(Tx_mb_2023):
def __init__(self, **kwargs): def __init__(self, **kwargs):
super().__init__(**kwargs) super().__init__(**kwargs)
# I2C connexion to MCP23008, for current injection # 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 # Initialize LEDs
self.pin4 = self.mcp_board.get_pin(4) # Ohmpi_run self.pin4 = self.mcp_board.get_pin(4) # Ohmpi_run
...@@ -81,6 +81,7 @@ class Tx(Tx_mb_2023): ...@@ -81,6 +81,7 @@ class Tx(Tx_mb_2023):
Tx_mb_2023.inject(self, polarity=polarity, injection_duration=injection_duration) Tx_mb_2023.inject(self, polarity=polarity, injection_duration=injection_duration)
self.pin6.value = False self.pin6.value = False
class Rx(Rx_mb_2023): class Rx(Rx_mb_2023):
def __init__(self, **kwargs): def __init__(self, **kwargs):
super().__init__(**kwargs) super().__init__(**kwargs)
......
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