-
Notifications
You must be signed in to change notification settings - Fork 10
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
MV[index] array indexing problem #163
Comments
I regularly get this problem (or something similar) when passing cdms2 objects to matplotlib or other non-PCMDI packages. This is merely annoying for me, because I know the workaround. But it's much more troublesome for the average user My workaround is to cast the array back to numpy, or numpy.ma, depending on what I'm doing:
Can you do some magic so that the beginning users are not frightened away by this horrible error? I don't even understand the error! It's a good thing I found this workaround years ago (must have been on a lucky day) |
@jypeter you could also use |
I could, if I knew about it! There are lots of available methods if I type dir(d)! But even if I had looked at
|
I am not sure how to fix this one, If we have axes |
@dnadeau4 you should do either way, in the return MV2.array(self.filled()[input_slicer_array]) |
ok I can do that.... |
I thought I could trigger a discussion on a better slicer, similar to numpy.take... |
@dnadeau4 both CDAT/cdat#1288 and #55 cover this territory |
@durack1 nice |
The text was updated successfully, but these errors were encountered: