Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
BalzaniEdoardo committed Dec 20, 2024
1 parent 4436e2f commit 84745e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pynapple/core/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,11 @@ def __getitem__(self, key, *args, **kwargs):
if (
(len(index) == 1)
and (output.ndim == 1)
and ((len(output) > 1) or isinstance(key, int) or isinstance(key[1], (list, np.ndarray)))
and (
(len(output) > 1)
or isinstance(key, int)
or isinstance(key[1], (list, np.ndarray))
)
):
# reshape output of single index to preserve column axis if there are more than one columns being indexed
# or if column key is a list or array
Expand Down

0 comments on commit 84745e7

Please sign in to comment.