We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 356bd9f commit 0b9c98bCopy full SHA for 0b9c98b
larray/core.py
@@ -975,7 +975,7 @@ def translated_key(self, key):
975
def __getitem__(self, key, collapse_slices=False):
976
data = np.asarray(self)
977
978
- if (isinstance(key, np.ndarray) or isinstance(key, LArray)) and \
+ if isinstance(key, (np.ndarray, LArray)) and \
979
np.issubdtype(key.dtype, bool):
980
#TODO: return an LArray with Axis labels = combined keys
981
# these combined keys should be objects which display as:
0 commit comments