Skip to content

Commit

Permalink
revert update to | replace for graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Aug 5, 2024
1 parent b81a163 commit c67abbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pymatgen/analysis/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ def draw_graph_to_file(
d["label"] = f"{d['weight']:.2f} {units}"

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

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

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

# optionally remove periodic image edges,
# these can be confusing due to periodic boundaries
Expand Down

0 comments on commit c67abbc

Please sign in to comment.