Skip to content

Commit

Permalink
used self.index instead of self.keys()
Browse files Browse the repository at this point in the history
  • Loading branch information
BalzaniEdoardo committed Apr 5, 2024
1 parent 574febb commit ba4f40a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynapple/core/ts_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def __getitem__(self, key):
f"The number of Ts is {self.__len__()}, but the bolean array"
f"has length {len(key)} instead!"
)
key = np.asarray(self.keys())[key]
key = self.index[key]
return self._ts_group_from_keys(key)

def _ts_group_from_keys(self, keys):
Expand Down

0 comments on commit ba4f40a

Please sign in to comment.