e-bike range estimation: add feature
e-bike range estimation: add feature: a task in smol-software-harbor (Harbor dataset). Riders want to know how much to charge before a trip. Add min charge for(model, assist, km, cargo kg=0) to ebike/battery.py : the smallest whole charge percentage whose estimated range (same model as range km …
The task
Riders want to know how much to charge before a trip. Add `min_charge_for(model, assist, km, cargo_kg=0)` to `ebike/battery.py`: the smallest whole charge percentage whose estimated range (same model as `range_km`, reserve and cargo included, without rounding) covers `km`, or `None` when even a full battery is not…
Part of efederici/smol-software-harbor.