Skip to content

Commit c67abbc

Browse files
committed
revert update to | replace for graphs
1 parent b81a163 commit c67abbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pymatgen/analysis/graphs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ def draw_graph_to_file(
933933
d["label"] = f"{d['weight']:.2f} {units}"
934934

935935
# update edge with our new style attributes
936-
g.edges[u, v, k] |= d
936+
g.edges[u, v, k].update(d)
937937

938938
# optionally remove periodic image edges,
939939
# these can be confusing due to periodic boundaries
@@ -2603,7 +2603,7 @@ def draw_graph_to_file(
26032603
d["label"] = f"{d['weight']:.2f} {units}"
26042604

26052605
# update edge with our new style attributes
2606-
g.edges[u, v, k] |= d
2606+
g.edges[u, v, k].update(d)
26072607

26082608
# optionally remove periodic image edges,
26092609
# these can be confusing due to periodic boundaries

0 commit comments

Comments
 (0)