Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions rmgpy/molecule/moleculeTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,12 +1042,12 @@ def testPickle(self):

def testRadicalCH(self):
"""
Test that the species [CH] has three radical electrons and a spin multiplicity of 4.
Test that the species [CH] has one radical electrons and a spin multiplicity of 2.
"""
molecule = Molecule().fromSMILES('[CH]')
self.assertEqual(molecule.atoms[0].radicalElectrons, 3)
self.assertEqual(molecule.multiplicity, 4)
self.assertEqual(molecule.getRadicalCount(), 3)
self.assertEqual(molecule.atoms[0].radicalElectrons, 1)
self.assertEqual(molecule.multiplicity, 2)
self.assertEqual(molecule.getRadicalCount(), 1)

def testRadicalCH2(self):
"""
Expand Down
6 changes: 6 additions & 0 deletions rmgpy/molecule/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
multiplicity 3
1 C u2 p1 c0
""",
'[CH]': # We'd return the quartet without this
"""
multiplicity 2
1 C u1 p1 c0 {2,S}
2 H u0 p0 c0 {1,S}
""",

}

Expand Down
6 changes: 2 additions & 4 deletions rmgpy/molecule/parserTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,9 @@ def test_fromSMILES(self):
# of methylidyne exists as a mixture of electronic states even at
# room temperature, giving rise to complex reactions.
#
# Should we make the doublet? For now, this is a regression test,
# because we currently make the quartet.
adjlist = '''
multiplicity 4
1 C u3 p0 c0 {2,S}
multiplicity 2
1 C u1 p1 c0 {2,S}
2 H u0 p0 c0 {1,S}
'''
smiles = '[CH]'
Expand Down