diff --git a/src/anemoi/inference/checkpoint/__init__.py b/src/anemoi/inference/checkpoint/__init__.py index f1e54cf..c314885 100644 --- a/src/anemoi/inference/checkpoint/__init__.py +++ b/src/anemoi/inference/checkpoint/__init__.py @@ -206,5 +206,5 @@ def validate_environment( raise ValueError(f"Invalid value for `on_difference`: {on_difference}") return False - LOG.info(f"Environment validation passed") + LOG.info("Environment validation passed") return True diff --git a/src/anemoi/inference/checkpoint/metadata/__init__.py b/src/anemoi/inference/checkpoint/metadata/__init__.py index da4949c..33bd5bc 100644 --- a/src/anemoi/inference/checkpoint/metadata/__init__.py +++ b/src/anemoi/inference/checkpoint/metadata/__init__.py @@ -345,7 +345,6 @@ def rounded_area(self, area): return area def report_loading_error(self): - import json if "provenance_training" not in self._metadata: return