unit conversion: config change
unit conversion: config change: a task in smol-software-harbor (Harbor dataset). Two changes to the kitchen converter, driven by units.json : 1. switch the cup to the metric cup: cup becomes 250 ml; 2. add a top-level key "precision": 1 to units.json , and make convert() in kitchen/convert.py…
The task
Two changes to the kitchen converter, driven by `units.json`: 1. switch the cup to the metric cup: `cup` becomes 250 ml; 2. add a top-level key `"precision": 1` to `units.json`, and make `convert()` in `kitchen/convert.py` round to that many decimals instead of the hard-coded 2 (if a table has no `precision` key,…
Part of efederici/smol-software-harbor.