Skip to content

Commit 77430fe

Browse files
Merge pull request #1280 from chrisjonesBSU/bond-viz
Fix bond order in Visualizaiton
2 parents e218c15 + 067601d commit 77430fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mbuild/compound.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,9 @@ def _visualize_py3dmol(self, show_ports=False, color_scheme={}, bead_size=0.3):
17621762
py3Dmol = import_("py3Dmol")
17631763

17641764
cloned = clone(self)
1765+
for edge in cloned.bond_graph.edges(data=True):
1766+
if edge[2]["bond_order"] == 0.0:
1767+
edge[2]["bond_order"] = 1.0
17651768

17661769
modified_color_scheme = {}
17671770
for name, color in color_scheme.items():

0 commit comments

Comments
 (0)