Commit 133b1c1d authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Searches for run_measurement error

Showing with 1 addition and 5 deletions
+1 -5
...@@ -103,11 +103,6 @@ class Tx(TxAbstract): ...@@ -103,11 +103,6 @@ class Tx(TxAbstract):
self.polarity = 0 self.polarity = 0
self.gain = 2 / 3 self.gain = 2 / 3
# MCP23008 pins for LEDs
# self.pin4 = self.mcp_board.get_pin(4) # TODO: Delete me? No LED on this version of the board
# self.pin4.direction = Direction.OUTPUT
# self.pin4.value = True
self.exec_logger.event(f'{self.board_name}\ttx_init\tend\t{datetime.datetime.utcnow()}') self.exec_logger.event(f'{self.board_name}\ttx_init\tend\t{datetime.datetime.utcnow()}')
@property @property
...@@ -161,6 +156,7 @@ class Tx(TxAbstract): ...@@ -161,6 +156,7 @@ 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:
......
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