From 28bea846aebec0722d46d8ecc367717248a6d907 Mon Sep 17 00:00:00 2001 From: Philipp Schlegel Date: Sun, 22 Sep 2024 17:29:34 +0100 Subject: [PATCH] I/O: fix `limit` regex pattern for zip archives --- navis/io/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/navis/io/base.py b/navis/io/base.py index f2d06b6c..343e090c 100644 --- a/navis/io/base.py +++ b/navis/io/base.py @@ -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,