From 96a690f96f814bec72d133d195408d6a65f99b11 Mon Sep 17 00:00:00 2001 From: Arnaud Watlet <arnaud.watlet@umons.ac.be> Date: Fri, 1 Dec 2023 17:12:54 +0100 Subject: [PATCH] Places tx_volt print outputs in exec_logger.debug --- ohmpi/hardware_system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index f41f6acc..acacb318 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -509,14 +509,14 @@ class OhmPiHardware: vabs.append(new_vab) # print(f'new_vab: {new_vab}, diff_vab: {diff_vab}\n') if diff_vab < diff_vab_lim: - print('stopped on vab increase too small') + self.exec_logger.debug('Compute_tx_volt stopped on vab increase too small') k = k + 1 vab_list[k] = np.min(vabs) time.sleep(0.5) if self.tx.pwr.voltage_adjustable: self.tx.voltage = vab_list[k] if k > n_steps: - print('stopped on maximum number of steps reached') + self.exec_logger.debug('Compute_tx_volt stopped on maximum number of steps reached') vab_opt = vab_list[k] # print(f'Selected Vab: {vab_opt:.2f}') # if switch_pwr_off: -- GitLab