We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b81a163 commit c67abbcCopy full SHA for c67abbc
src/pymatgen/analysis/graphs.py
@@ -933,7 +933,7 @@ def draw_graph_to_file(
933
d["label"] = f"{d['weight']:.2f} {units}"
934
935
# update edge with our new style attributes
936
- g.edges[u, v, k] |= d
+ g.edges[u, v, k].update(d)
937
938
# optionally remove periodic image edges,
939
# these can be confusing due to periodic boundaries
@@ -2603,7 +2603,7 @@ def draw_graph_to_file(
2603
2604
2605
2606
2607
2608
2609
0 commit comments