Skip to content

Commit

Permalink
Pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
iguinn committed Oct 24, 2024
1 parent 21bd790 commit ba5d1c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lgdo/lh5/iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ def __init__(
elif not isinstance(groups, list):
msg = "group must be a string or appropriate list"
raise ValueError(msg)
elif all([isinstance(g, str) for g in groups]):
elif all(isinstance(g, str) for g in groups):
groups = [groups] * len(lh5_files)
elif len(groups) == len(lh5_files) and all(
[isinstance(l, (list, set, tuple)) for l in groups]
isinstance(gr_list, (list, set, tuple)) for gr_list in groups
):
pass
else:
Expand Down

0 comments on commit ba5d1c6

Please sign in to comment.