DiamondLightSource / DiamondLightSource/pytac
Option to `element,get_value` etc to return formatted string with units
Open
- Dominant language
- Python
- Stars
- 7
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice if we could get the unit name together with a value without having to go and get the unit conv object.
A possible implementation would be to add an optional argument e.g. `formatted` to e.g. `element.get_value` which would make it return a string with a few digits of precision and the units.
People may want then to specify the precision...
Contributor guide
Assessment
This issue has not been assessed yet.