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
BUG: Setting the mask on a view with mask=nomask does not propagate to the owner #7781
Comments
Confirmed in master (1.12). This is like what #5580 hoped to fix, but as discussed there this particular case is not possible to fix without an overhaul of MaskedArray to remove Here's the problem: MaskedArrays sometimes store the mask as an array of booleans, and sometimes (if there are no masked values) store the mask simply as the value The problem is that when slicing a MaskedArray (and getting a view), the mask can only be "viewed" if it is currently an array of booleans, but not if it is the constant "False". So the first time you try Add this to the long list of bugs caused by this |
Every time I think of It seems to me that If it was really such a productive thing to know whether the mask was trivial or not, we could just as easily have a method like Is there any interest in moving towards removing |
I would like to chime in that I've also run into this issue. It might be worthwhile to add a note in the documentation about it. The following suggests to me that modifying the mask of a view will modify the mask of the original.
|
Maybe, also |
Here is the issue I run into during my work
The problem with the mask when it is not set
I know my system is not up to date but I asked a friend who has
and he confirms that issue exists
The text was updated successfully, but these errors were encountered: