Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 7, 2025
1 parent 3c45423 commit f8ed73e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/anemoi/inference/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,11 +512,12 @@ def _find(x):
_find(y)

if isinstance(x, dict):
if "dataset" in x and isinstance(x["dataset"], str):
if "dataset" in x and isinstance(x["dataset"], str):
result.append(x["dataset"])

for k, v in x.items():
_find(v)

_find(self._config.dataloader.training.dataset)
return result

Expand Down

0 comments on commit f8ed73e

Please sign in to comment.