Skip to content

Commit 6b72e99

Browse files
mjohnson541ssun30
authored andcommitted
fix charge handling in make sample molecule
1 parent c3127d8 commit 6b72e99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rmgpy/molecule/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2995,7 +2995,7 @@ def make_sample_molecule(self):
29952995
'S0sc', 'S2sc', 'S2dc', 'S2tc', 'S4sc', 'S4dc', 'S4tdc', 'S6sc', 'S6dc', 'S6tdc']
29962996
if group_atom.atomtype[0] in [ATOMTYPES[x] for x in positive_charged] and atom.charge > 0:
29972997
pass
2998-
elif atom.charge in group_atom.charge:
2998+
elif atom.charge in group_atom.atomtype[0].charge:
29992999
# declared charge in original group is same as new charge
30003000
pass
30013001
else:

0 commit comments

Comments
 (0)