Skip to content

Commit

Permalink
Fix re sub usage
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Sep 26, 2023
1 parent aa747ad commit 41e25ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ctapipe_io_zfits/multifile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MultiFiles(Component):
).tag(config=True)

all_chunks = Bool(
default_value=True,
default_value=False,
help="If true, open subsequent chunks when current one is exhausted",
).tag(config=True)

Expand All @@ -59,7 +59,7 @@ def __init__(self, path, *args, **kwargs):
self.directory = self.path.parent

# glob for files and group by data_source
pattern = self.chunk_re.sub(self.data_source_re.sub(self.path.name, "*"), "*")
pattern = self.chunk_re.sub("*", self.data_source_re.sub("*", self.path.name))
paths = self.directory.glob(pattern)

self._files = defaultdict(list)
Expand Down

0 comments on commit 41e25ad

Please sign in to comment.