From 7ac7a841bd564d8107330d8592691bfa501ad6f9 Mon Sep 17 00:00:00 2001 From: Baudouin Raoult Date: Mon, 21 Oct 2024 08:11:41 +0000 Subject: [PATCH] update --- src/anemoi/registry/commands/update.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/anemoi/registry/commands/update.py b/src/anemoi/registry/commands/update.py index d4daa58..9b742c2 100644 --- a/src/anemoi/registry/commands/update.py +++ b/src/anemoi/registry/commands/update.py @@ -159,7 +159,7 @@ def entry_set_value(path, value): entry_set_value("/metadata/updated", updated + 1) if "constant_fields" in entry.record["metadata"] and "variables_metadata" in entry.record["metadata"]: - LOG.info("%s, setting `variables_metadata` and `constant_fields`") + LOG.info("%s, checking `variables_metadata` and `constant_fields`", name) constants = entry.record["metadata"]["constant_fields"] variables_metadata = entry.record["metadata"]["variables_metadata"] @@ -178,6 +178,8 @@ def entry_set_value(path, value): if changed: entry_set_value("/metadata/variables_metadata", variables_metadata) entry_set_value("/metadata/updated", updated + 1) + else: + LOG.info("No changes required") if "variables_metadata" not in entry.record["metadata"] or args.force: LOG.info("%s, setting `variables_metadata` 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥", name)