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
Dask interprets boolean array as an index array #8532
Thanks for mentioning that @pavithraes they are indeed very similar, but follow different code paths. Someone might be able to fix them both at once though!
OK - I think I've got to the bottom of this. The problem is related to the parsing of the indices, rather than the mechanics of the assignment (which is a relief!). PR to follow.
Activity
jsignell commentedon Jan 5, 2022
Thanks for writing this up! I am able to reproduce, but I'm having trouble tracking down the exact issue. I think it is likely in this funciton:
dask/dask/array/slicing.py
Line 1350 in e4799c0
As a workaround, using a computed array as the key for the set item seems to work as expected:
pavithraes commentedon Jan 5, 2022
This may be a duplicate of #8460
jsignell commentedon Jan 5, 2022
Thanks for mentioning that @pavithraes they are indeed very similar, but follow different code paths. Someone might be able to fix them both at once though!
davidhassell commentedon Jan 6, 2022
I'm happy to have to a look at this.
davidhassell commentedon Jan 6, 2022
OK - I think I've got to the bottom of this. The problem is related to the parsing of the indices, rather than the mechanics of the assignment (which is a relief!). PR to follow.