Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Remove excess metadata from variables (#201)
Browse files Browse the repository at this point in the history
Fix remove `metadata.dataset.specific.forward.forward.attrs.variables_metadata.` from logger params
  • Loading branch information
HCookie authored Dec 13, 2024
1 parent a2d8e6d commit 318c14c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/anemoi/training/diagnostics/mlflow/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ def _clean_params(params: dict[str, Any]) -> dict[str, Any]:
"diagnostics",
"metadata.config",
"metadata.dataset.variables_metadata",
"metadata.dataset.specific.forward.forward.attrs.variables_metadata",
]
keys_to_remove = [key for key in params if any(key.startswith(prefix) for prefix in prefixes_to_remove)]
for key in keys_to_remove:
Expand Down

0 comments on commit 318c14c

Please sign in to comment.