From 9b46a6f0bae77343054136ba48fc6e9490676043 Mon Sep 17 00:00:00 2001 From: Baudouin Raoult Date: Sat, 15 Jun 2024 21:37:55 +0100 Subject: [PATCH] work on graph --- src/anemoi/inference/checkpoint/metadata/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/anemoi/inference/checkpoint/metadata/__init__.py b/src/anemoi/inference/checkpoint/metadata/__init__.py index 09cfe50..e1f0f60 100644 --- a/src/anemoi/inference/checkpoint/metadata/__init__.py +++ b/src/anemoi/inference/checkpoint/metadata/__init__.py @@ -351,12 +351,12 @@ def digraph(self, label_maker=lambda x: dict(label=x.kind)): for node, label in nodes.items(): for k, v in label.items(): - if isinstance(v, str) and v.startswith("<") and v.endswith(">"): - # Skip HTML labels - pass - else: - # Use json.dumps to escape special characters - label[k] = json.dumps(v) + # if isinstance(v, str) and v.startswith("<") and v.endswith(">"): + # # Keep HTML labels as is + # pass + # else: + # # Use json.dumps to escape special characters + label[k] = json.dumps(v) label = " ".join([f"{k}={v}" for k, v in label.items()])