Skip to content

Commit

Permalink
update keys of bond order dict
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Oct 19, 2023
1 parent a4b3921 commit fc023c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mbuild/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -1782,11 +1782,11 @@ def to_rdkit(compound):
p_dict = {particle: i for i, particle in enumerate(compound.particles())}

bo_dict = {
1.0: Chem.BondType.SINGLE,
2.0: Chem.BondType.DOUBLE,
3.0: Chem.BondType.TRIPLE,
1.5: Chem.BondType.AROMATIC,
0.0: Chem.BondType.UNSPECIFIED,
"single": Chem.BondType.SINGLE,
"double": Chem.BondType.DOUBLE,
"triple": Chem.BondType.TRIPLE,
"aromatic": Chem.BondType.AROMATIC,
"unspecified": Chem.BondType.UNSPECIFIED,
"default": Chem.BondType.SINGLE,
}

Expand Down

0 comments on commit fc023c1

Please sign in to comment.