-
Notifications
You must be signed in to change notification settings - Fork 474
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
[WIP] fix #86c, #37, #39, added support to many numpy functions #704
Conversation
The fail with pandas comes from the fact that pandas can't really test for nan with the new implementation. I am not sure how to fix it.
Also, older versions of numpy fails because they want Quantity to be an array. The problem is that if Quantity gives an array representation, the units are lost. So these changes can only be applied to newer versions of numpy. Maybe the solution is to only return the |
This has been superseed by #905 and related |
asQuantity
function to transform an array into aQuantity
(a bit like numpy's asarray)Quantity
toQuantity
Quantity
is not anndarray
! is has anndarray
. Therefore it should not respond to['__array_interface__', '__array_struct__' , '__array__', '_data']
__array_ufunc__
to handle numpy function