Skip to content

Commit

Permalink
I/O: fix limit regex pattern for zip archives
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Sep 22, 2024
1 parent 745aa85 commit 28bea84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions navis/io/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,9 +1143,9 @@ def parallel_read_archive(
elif isinstance(limit, str):
# Check if limit is a regex
if rgx.search(limit):
to_read = [f for f in to_read if re.search(limit, f)]
to_read = [f for f in to_read if re.search(limit, f.filename)]
else:
to_read = [f for f in to_read if limit in f]
to_read = [f for f in to_read if limit in f.filename]

prog = partial(
config.tqdm,
Expand Down

0 comments on commit 28bea84

Please sign in to comment.