DiamondLightSource / DiamondLightSource/pytac

Option to `element,get_value` etc to return formatted string with units

Open
#107 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.