Introduction of Pint for quantities and units #35
Closed
RollingTechSupport
started this conversation in
Ideas
Replies: 2 comments
|
First, I would definitely not introduce it into the core, since it will have a significant performance overhead and be a major breaking change, breaking basically everything. As an extension it could be feasible. There we would have the following issues:
If not providing a distinct extension but as part of a certain UI:
The latter approach sounds the easiest way for me. The first may get very hacky and error prone. |
0 replies
|
Closed due to inactive. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Since PyRolL currently supports all metric units but all of the "physical quantities handling" has to be done by the user, I suggest a filter layer for the import to introduce units.
This would benefit PyRolL since "simple" users don't want to think about to much stuff before doing their first simulation.
Also some model approaches (mostly the empirical ones) work in specific physical quantities.
Therefore the introduction of physical quantities would further protect PyRolL from misuse.
A possibility to introduce units is the python package pint .
This could act as a translation layer, anchored inside a own extension plugin.
First of I would like to discuss it generally.
All reactions