-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Uncertainties + pint #86
Comments
Indeed, Pint objects should be handled by Pint instead of the uncertainties module: units have to be handled somewhere. Now, how would you do the same if your Pint quantities didn't have uncertainties? |
For Pint quantities without uncertainties it can be done using Numpy:
|
And so what happens if you do the same with uncertainties? |
This
gives
|
Thanks. I'll investigate some more the interaction between NumPy and non-basic types, then. My guess is that |
I am trying to combine uncertainties and pint to avoid tedious calculations. When operations consist only in +,-,* and / everything works perfectly. The problem arises when I try to use other functions of the uncertainties package such as cosine(), sqrt(), etc. A MWE of what I am trying to do is as follows
As far as I know the problem is that sqrt() is waiting for a ufloat object and I am passing a "pint type object". Is there any way to implement this?
The text was updated successfully, but these errors were encountered: