-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
np.MaskedArray.transpose() produces partial views #8506
Comments
Repeating this with
|
This behaviour is as intended originally (see masked array docs), but it is not obvious it is a good idea (see #5558), and hence plans are afoot to change it: #5580. The latter PR is also the reason you are getting |
Its pretty nonsense Seems like all those changes were not enough yet and there are more things where such a warning/change would be needed. Though, at least it may be ok to do one after another. |
Yep, I think the best option here is to duplicate the warning inside transpose |
We tried quite hard not to give warnings that were superfluous -- this only affects those who would like to write to transposed data, which surely is a minority. So, I don't think we can warn inside |
Perhaps there should be a flag on "partial view"s, that causes a warning to be emitted the first time a write happens |
I am not sure, but it might be possible to set |
The text was updated successfully, but these errors were encountered: