Skip to content

Commit 0b9c98b

Browse files
committed
simplify
1 parent 356bd9f commit 0b9c98b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larray/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ def translated_key(self, key):
975975
def __getitem__(self, key, collapse_slices=False):
976976
data = np.asarray(self)
977977

978-
if (isinstance(key, np.ndarray) or isinstance(key, LArray)) and \
978+
if isinstance(key, (np.ndarray, LArray)) and \
979979
np.issubdtype(key.dtype, bool):
980980
#TODO: return an LArray with Axis labels = combined keys
981981
# these combined keys should be objects which display as:

0 commit comments

Comments
 (0)