e-bike range estimation: fix bug
e-bike range estimation: fix bug: a task in smol-software-harbor (Harbor dataset). The range shown on the e-bike display ignores the 10 % battery reserve (a full trekking battery in tour mode shows 69.4 km instead of 62.5 km, test range fails). Fix range km in ebike/battery.py according to its…
The task
The range shown on the e-bike display ignores the 10 % battery reserve (a full trekking battery in tour mode shows 69.4 km instead of 62.5 km, `test_range` fails). Fix `range_km` in `ebike/battery.py` according to its docstring and run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.