Skip to content

Commit

Permalink
fix charge handling in make sample molecule
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed Jun 10, 2023
1 parent cab6232 commit 408c5b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmgpy/molecule/group.py
Expand Up @@ -2957,7 +2957,7 @@ def make_sample_molecule(self):
'S0sc', 'S2sc', 'S2dc', 'S2tc', 'S4sc', 'S4dc', 'S4tdc', 'S6sc', 'S6dc', 'S6tdc']
if group_atom.atomtype[0] in [ATOMTYPES[x] for x in positive_charged] and atom.charge > 0:
pass
elif atom.charge in group_atom.charge:
elif atom.charge in group_atom.atomtype[0].charge:
# declared charge in original group is same as new charge
pass
else:
Expand Down

0 comments on commit 408c5b5

Please sign in to comment.