From 0cbf8173897e56c3d06dfad4381d1b598aa45e3c Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Thu, 5 Oct 2023 16:29:15 +0200 Subject: [PATCH] Removes reference to tx_module.TX_CONFIG and rx_module.RX_CONFIG --- ohmpi/hardware_components/mb_2023_0_X.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ohmpi/hardware_components/mb_2023_0_X.py b/ohmpi/hardware_components/mb_2023_0_X.py index f7d078b9..4b6f2b0d 100644 --- a/ohmpi/hardware_components/mb_2023_0_X.py +++ b/ohmpi/hardware_components/mb_2023_0_X.py @@ -191,8 +191,9 @@ class Tx(TxAbstract): assert self.adc_voltage_min / (50 * self.r_shunt) <= value <= self.adc_voltage_max / (50 * self.r_shunt) self.exec_logger.warning(f'Current pulse is not implemented for the {self.board_name} board') - def gain_auto(self): + def gain_auto(self, value): self._adc_gain_auto() + def inject(self, polarity=1, injection_duration=None): self.polarity = polarity TxAbstract.inject(self, polarity=polarity, injection_duration=injection_duration) @@ -299,7 +300,7 @@ class Rx(RxAbstract): self.adc_gain = gain self.exec_logger.event(f'{self.board_name}\trx_adc_auto_gain\tend\t{datetime.datetime.utcnow()}') - def gain_auto(self): + def gain_auto(self, value): self._adc_gain_auto() @property def voltage(self): -- GitLab