Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Dec 17, 2024
1 parent 1c75729 commit 1c03cf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/anemoi/datasets/create/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def to_datetime(*args, **kwargs):


def make_list_int(value):
# Convert a string like "1/2/3" or "1/to/3" or "1/to/10/by/2" to a list of integers.
# Moved to anemoi.utils.humanize
# replace with from anemoi.utils.humanize import make_list_int
# when anemoi-utils is released and pyproject.toml is updated
if isinstance(value, str):
if "/" not in value:
return [value]
Expand Down

0 comments on commit 1c03cf6

Please sign in to comment.