Representing phisical units together with the data #37
steinnymir
started this conversation in
Ideas
Replies: 1 comment
-
This needs to be done eventually. The Nexus framework we are building in Fairmat has proper units handling and tracking as prerequisite, so gathering and housekeeping the units also in this package does not seem like a bad idea, on the other hand we should avoid doing too much twice. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
An useful feature would be to keep track of units of the physical quantities represented.
A python package designed to handle these is Pint. It basically allows to assign units to numbers and numpy arrays.
An interesting project to hook up to is pint-xarray. This can handle the xarray objects we are using extensively, adding physical units to them.
I open this here as a discussion to test how much this could be of interest, and if it is worth investing the time in developing this.
Beta Was this translation helpful? Give feedback.
All reactions