-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full support for uncertainties #24
Comments
I know the uncertainties package, it is great. I would really like to integrate it into Pint. I see several ways:
All options will need some work to patch I think that some of this ideas will be easier to implement if the What do you think? |
Thank you for your interest in this! I like option 3 the best too: a number with uncertainty is a number with uncertainty even if it has units. Inheriting from UFloat is good. I would be happy to adjust the internals of uncertainties so that it is as easy as possible for you to integrate it into Pint. With option 3, the only That said, wouldn't be possible to do the pure-value (no unit) calculations by using instead the mathematical functions from |
I will need to look more into But let me tell you about the current internals and maybe we can figure out the best way. The main class is The nice thing about having a Quantity (instead of float) as the value is the way that operations on measurements are implemented. If I was under the impression that |
You are right, I wanted to propose a scheme that differs from the one you propose, so that you can see if it fits in your framework: Not duplicating the wrapping of In fact, I guess that As for the |
I have started a temporary branch named Now is time to think how the math support is implemented.
In this way,
In the short term, create a In the long run, I think it will be great if |
Your comments look interesting; I will have a closer look. |
It would be nice to have full support for uncertainties (including correlations, all mathematical functions, etc.).
Maybe you could make use of the (pure Python) module I wrote for this (uncertainties).
The text was updated successfully, but these errors were encountered: