Commit 96a690f9 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Places tx_volt print outputs in exec_logger.debug

Showing with 2 additions and 2 deletions
+2 -2
...@@ -509,14 +509,14 @@ class OhmPiHardware: ...@@ -509,14 +509,14 @@ class OhmPiHardware:
vabs.append(new_vab) vabs.append(new_vab)
# print(f'new_vab: {new_vab}, diff_vab: {diff_vab}\n') # print(f'new_vab: {new_vab}, diff_vab: {diff_vab}\n')
if diff_vab < diff_vab_lim: 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 k = k + 1
vab_list[k] = np.min(vabs) vab_list[k] = np.min(vabs)
time.sleep(0.5) time.sleep(0.5)
if self.tx.pwr.voltage_adjustable: if self.tx.pwr.voltage_adjustable:
self.tx.voltage = vab_list[k] self.tx.voltage = vab_list[k]
if k > n_steps: 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] vab_opt = vab_list[k]
# print(f'Selected Vab: {vab_opt:.2f}') # print(f'Selected Vab: {vab_opt:.2f}')
# if switch_pwr_off: # if switch_pwr_off:
......
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