-
Notifications
You must be signed in to change notification settings - Fork 12
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
Can .pint.magnitude return a DataArray instead? #151
Comments
I would be okay with this - what say you @keewis? |
this feels pretty similar to |
If we are going to make this change then we should 100% do it before I release that belated blog post. I would be happy to implement this if we all agree? |
👍 The one place |
"Doesn't work" as in |
^ Yes AFAIK |
I do agree to make the change, but I would argue that |
coming back to this, I think that Edit: I'll leave this open until I've come to a conclusion regarding selectively dequantifying variables |
Currently
DataArray.pint.magnitude
returns a numpy array. Can it return a DataArray instead? We can always extract the numpy array usingDataArray.data.magnitude
.Just realized I can also use
DataArray.as_numpy()
but perhaps this is still worth considering?The text was updated successfully, but these errors were encountered: