You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's difficult in communicating with each other doesn't need to be complicated in programming. Using strong types reduces confusion and helps understanding which units are used to calculate something. Also, this would allow for easier extension and additional values involved later on...
The text was updated successfully, but these errors were encountered:
I highly recommend pydantic.
It not only helps you expressing types but it also validates at runtime. With mypy etc you can even have statics checks in your pipelines and/or githooks (pre-commit).
Description
I'd love to suggest to use a library that ensures a plausible value conversion between the different units.
Possible candidates:
https://github.com/vikramsamak/PhsiPy-Api
https://github.com/pacosalces/physunits/tree/master/physunits
https://github.com/juhasch/PhysicalQuantities
What's difficult in communicating with each other doesn't need to be complicated in programming. Using strong types reduces confusion and helps understanding which units are used to calculate something. Also, this would allow for easier extension and additional values involved later on...
The text was updated successfully, but these errors were encountered: