Commit 7db2f7f2 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes n_step bug

Showing with 2 additions and 2 deletions
+2 -2
......@@ -443,13 +443,13 @@ class OhmPiHardware:
# print(f'new_vab: {new_vab}, diff_vab: {diff_vab}\n')
if diff_vab < diff_vab_lim:
print('stopped on vab increase too small')
else:
print('stopped on maximum number of steps reached')
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')
vab_opt = vab_list[k]
# print(f'Selected Vab: {vab_opt:.2f}')
# 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