Commit 36889c45 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes bug in _compute_tx_volt

Showing with 3 additions and 3 deletions
+3 -3
......@@ -537,8 +537,8 @@ class OhmPiHardware:
else:
print('stopped on maximum number of steps reached')
print(f'Selected Vab: {vab:.2f}')
vab = np.min(vabs)
print(f'Selected Vab: {vab:.2f}')
vab_opt = np.min(vabs)
print(f'Selected Vab: {vab_opt:.2f}')
# if strategy == 'vmax':
# # implement different strategies
......@@ -563,7 +563,7 @@ class OhmPiHardware:
# polarity = -1 # TODO: check if we really need to return polarity
# else:
# polarity = 1
return vab, None, None
return vab_opt, None, None
def _plot_readings(self, save_fig=False):
# Plot graphs
......
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