Commit 4cf39502 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes bug in _compute_tx_volt

Showing with 1 addition and 0 deletions
+1 -0
......@@ -511,6 +511,7 @@ class OhmPiHardware:
# ax.plot([0, vab_max], [0, vmn_upper_bound * vab_max / vab[k]], '-r', alpha=(k + 1) / n_steps)
# ax.plot([0, vab_max], [0, vmn_lower_bound * vab_max / vab[k]], '-g', alpha=(k + 1) / n_steps)
# bounds on rab
print(f'rab_lb: {vab_list[k] / iab_upper_bound}')
rab_lower_bound = np.min([0.1, np.abs(vab_list[k] / iab_upper_bound)])
rab_upper_bound = np.min([0.1, np.abs(vab_list[k] / iab_lower_bound)])
# bounds on r
......
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