Skip to content

Commit eb651ba

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a5541bf commit eb651ba

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/anemoi/datasets/create/gridded/context.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ def matching_dates(self, filters: dict, group_of_dates: Any) -> GroupOfDates:
8585
"""
8686
unsupported = set(filters) - {"dates"}
8787
if unsupported:
88-
raise ValueError(
89-
f"Gridded layout does not support filtering by {unsupported}. "
90-
"Use 'dates' instead."
91-
)
88+
raise ValueError(f"Gridded layout does not support filtering by {unsupported}. " "Use 'dates' instead.")
9289

9390
filtering_dates = filters["dates"]
9491
return GroupOfDates(sorted(set(group_of_dates) & set(filtering_dates)), group_of_dates.provider)

src/anemoi/datasets/create/input/action.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ def __init__(self, config, *path):
9191
filters[key] = DatesProvider.from_config(**item[key])
9292

9393
if not filters:
94-
raise ValueError(
95-
f"Concat entry must have at least one of {self.FILTER_KEYS}."
96-
)
94+
raise ValueError(f"Concat entry must have at least one of {self.FILTER_KEYS}.")
9795

9896
action_config = {k: v for k, v in item.items() if k not in self.FILTER_KEYS}
9997
action = action_factory(action_config, *self.path, str(i))

0 commit comments

Comments
 (0)