Skip to content

Commit

Permalink
bug in slicing views
Browse files Browse the repository at this point in the history
  • Loading branch information
slinnarsson committed Oct 14, 2018
1 parent cdded22 commit 80c7d42
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions loompy/layer_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ def __getitem__(self, thing: Any) -> np.ndarray:
"""
if type(thing) is str:
return self.__getattr__(thing)
elif type(thing) is tuple:
# A tuple of strings giving alternative names for attributes
for t in thing:
if t in self.__dict__["storage"]:
return self.__getattr__(t)
raise AttributeError(f"'{type(self)}' object has no attribute {thing}")
else:
# Assume some kind of slice
lm = LayerManager(None)
Expand Down

0 comments on commit 80c7d42

Please sign in to comment.