Skip to content

Commit 067601d

Browse files
committed
Set 0.0 bond orders to 1.0 for visualizaiton
1 parent e218c15 commit 067601d

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)