Skip to content

Commit b1cfa5a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 28be0cb commit b1cfa5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphs/src/anemoi/graphs/plotting/interactive_3d_html.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def extract_nodes_edges(
6161
edges_keys = graph.edge_types
6262

6363
out_nodes = {n: graph[n].x for n in nodes}
64-
out_edges = {"_".join(e) : graph[e].edge_index for e in edges_keys}
64+
out_edges = {"_".join(e): graph[e].edge_index for e in edges_keys}
6565

6666
return out_nodes, out_edges
6767

@@ -85,6 +85,7 @@ def to_edges_json(names1, names2, pairs):
8585
edges = [[names1[i], names2[j]] for i, j in pairs]
8686
return edges
8787

88+
8889
def plot_interactive_graph_3d(
8990
graph: HeteroData,
9091
out_file: str | Path,

0 commit comments

Comments
 (0)