-
Notifications
You must be signed in to change notification settings - Fork 2
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
ENH: allow setting mask
attribute?
#42
Comments
You try to support packages that don't support assignment to the mask already I think. I would suggest to resist this temptation, it seems like a way to creatn confusion via strange mutability for little gain. (view semantics may not make sense for all libraries of course) |
Packages that support mutation wouldn't support mutation. I wouldn't try to change that. In any case, I didn't mean setting elements of the
It's not a temptation I need to resist. It's less work if I just leave things along, so I'm not tempted.
It's never more than a single line away.
but this doesn't (can't) protect against unmasking previously masked elements whereas
could. |
:), sorry if that was a bit strong reaction. I do feel I have heard of contexts where you create different masks for the same data array to do different analyses. Overall, |
OK, but as much as possible, I'm avoiding creating features that are not specifed by the array API. Having a I think I'll wait for there to be users who can weigh in before doing anything. |
ISTM it would be safe to allow setting the mask by taking the logical or of the original mask and the provided mask. Users might find this convenient rather than only being able to set the mask with
mxp.asarray
. Thoughts?The text was updated successfully, but these errors were encountered: