From 1e69a47a719adb748f99c51b0ab27a5c4993f6d8 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Sat, 15 Apr 2023 13:06:22 +0200 Subject: [PATCH] Fixes super issues --- hardware/mb_2024_rev_0_0.py | 6 +++--- hardware/ohmpi_card_3_15.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hardware/mb_2024_rev_0_0.py b/hardware/mb_2024_rev_0_0.py index 7a7d7206..67e25af9 100644 --- a/hardware/mb_2024_rev_0_0.py +++ b/hardware/mb_2024_rev_0_0.py @@ -132,7 +132,7 @@ class Tx(TxAbstract): self.adc_gain = gain def current_pulse(self, **kwargs): - super().current_pulse(**kwargs) + TxAbstract.current_pulse(self, **kwargs) self.exec_logger.warning(f'Current pulse is not implemented for the {TX_CONFIG["model"]} board') @property @@ -188,12 +188,12 @@ class Tx(TxAbstract): self.DPS.write_register(0x0000, value, 2) def turn_off(self): - super().turn_off() + TxAbstract.turn_off(self) self.pin2.value = False self.pin3.value = False def turn_on(self): - super().turn_on() + TxAbstract.turn_on(self) self.pin2.value = True self.pin3.value = True diff --git a/hardware/ohmpi_card_3_15.py b/hardware/ohmpi_card_3_15.py index d123074a..eb5a0343 100644 --- a/hardware/ohmpi_card_3_15.py +++ b/hardware/ohmpi_card_3_15.py @@ -118,7 +118,7 @@ class Tx(TxAbstract): self.adc_gain = gain def current_pulse(self, **kwargs): - super().current_pulse(**kwargs) + TxAbstract.current_pulse(self, **kwargs) self.exec_logger.warning(f'Current pulse is not implemented for the {TX_CONFIG["model"]} board') @property -- GitLab