Skip to content

Commit f4a3ef0

Browse files
committed
fix [CH] spin state in parsing
1 parent bf75dbd commit f4a3ef0

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

rmgpy/molecule/parser.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@
5959
multiplicity 3
6060
1 C u2 p1 c0
6161
""",
62+
'[CH]': # We'd return the quartet without this
63+
"""
64+
multiplicity 2
65+
1 C u1 p1 c0 {2,S}
66+
2 H u0 p0 c0 {1,S}
67+
""",
6268

6369
}
6470

rmgpy/molecule/parserTest.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,9 @@ def test_fromSMILES(self):
278278
# of methylidyne exists as a mixture of electronic states even at
279279
# room temperature, giving rise to complex reactions.
280280
#
281-
# Should we make the doublet? For now, this is a regression test,
282-
# because we currently make the quartet.
283281
adjlist = '''
284-
multiplicity 4
285-
1 C u3 p0 c0 {2,S}
282+
multiplicity 2
283+
1 C u1 p1 c0 {2,S}
286284
2 H u0 p0 c0 {1,S}
287285
'''
288286
smiles = '[CH]'

0 commit comments

Comments
 (0)