Skip to content

Commit

Permalink
Fix mistake in returning patterns to kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-white committed Aug 2, 2024
1 parent 3049ed0 commit eae1916
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/access_nri_intake/source/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def parser(file):

@classmethod
def parse_access_filename(
cls, filename, patterns=PATTERNS, frequencies=FREQUENCIES, redaction_fill: str = "X"
cls, filename, patterns=None, frequencies=FREQUENCIES, redaction_fill: str = "X"
):
"""
Parse an ACCESS model filename and return a file id and any time information
Expand All @@ -239,6 +239,8 @@ def parse_access_filename(
frequency: str
The frequency of the file if available in the filename
"""
if patterns is None:
patterns = cls.PATTERNS

# Try to determine frequency
frequency = None
Expand Down

0 comments on commit eae1916

Please sign in to comment.