Skip to content

Commit

Permalink
fix dataset name checking
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Aug 23, 2024
1 parent 8c8f493 commit a0a3797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anemoi/datasets/create/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def raise_if_not_valid(self, print=print):
raise ValueError(self.error_message)

def _parse(self, name):
pattern = r"^(\w+)-([\w-]+)-(\w+)-(\w+)-(\d\d\d\d)-(\d\d\d\d)-(\d+h)-v(\d+)-?([a-zA-Z0-9-]+)$"
pattern = r"^(\w+)-([\w-]+)-(\w+)-(\w+)-(\d\d\d\d)-(\d\d\d\d)-(\d+h)-v(\d+)-?([a-zA-Z0-9-]+)?$"
match = re.match(pattern, name)

assert match, (name, pattern)
Expand Down

0 comments on commit a0a3797

Please sign in to comment.