You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
da.Array.__setitem__ with bool mask changes dtype and shape #11724
When da.Array.__setitem__ receives a dask array of bools as the index, it's internally implemented as da.where.
The logic to retain the object's dtype is missing:
changed the title [-]`da.Array.__setitem__` with bool mask changes dtype[/-][+]`da.Array.__setitem__` with bool mask changes dtype and shape[/+]on Feb 7, 2025
Activity
[-]`da.Array.__setitem__` with bool mask changes dtype[/-][+]`da.Array.__setitem__` with bool mask changes dtype and shape[/+]crusaderky commentedon Feb 7, 2025
There is also no protection against shape changes:
crusaderky commentedon Feb 7, 2025
This is also wrong: