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
As a follow-up to #735, we should actually decide what to do in that case. I am leaning towards this scheme:
ifboollarraykey:
ifselfhasaboolaxis:
has_common_axes=len(key.axes&array.axes) >=1ifhas_common_axes:
raiseValueError("boolean key is ambiguous because it can target either the array or the boolean axis")
else:
# target the bool axis<currentnonboolcode>else:
<currentboolcode>else:
<currentnonboolcode>