Skip to content

Commit a218f3e

Browse files
committed
Un-comment converter test_xyz_to_smiles tests
1 parent 3da5c59 commit a218f3e

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

arc/species/converter_test.py

+34-34
Original file line numberDiff line numberDiff line change
@@ -3481,37 +3481,37 @@ def test_xyz_to_smiles(self):
34813481
C 0.00000000 0.00000000 -0.50136500
34823482
H 0.00000000 0.00000000 -1.57173600"""
34833483

3484-
# xyz9 = """S -0.00866000 -0.60254900 0.00000000
3485-
# N -0.96878800 0.63275900 0.00000000
3486-
# N 1.01229100 0.58298500 0.00000000"""
3487-
#
3488-
# xyz10 = """O -0.79494500 -0.93969200 0.00000000
3489-
# O -0.32753500 1.24003800 0.00000000
3490-
# O 1.28811400 -0.24729000 0.00000000
3491-
# N 0.14143500 0.11571500 0.00000000
3492-
# H -1.65602000 -0.48026800 0.00000000"""
3493-
#
3494-
# xyz11 = """O 1.64973000 -0.57433600 0.02610800
3495-
# O 0.49836300 1.28744800 -0.18806200
3496-
# N -0.57621600 -0.65116600 0.24595200
3497-
# N -1.78357200 -0.10211200 -0.14953800
3498-
# N 0.61460400 0.08152700 -0.00952700
3499-
# H -0.42001200 -1.61494900 -0.03311600
3500-
# H -1.72480300 0.33507600 -1.06884500
3501-
# H -2.07362100 0.59363400 0.53038600"""
3484+
xyz9 = """S -0.00866000 -0.60254900 0.00000000
3485+
N -0.96878800 0.63275900 0.00000000
3486+
N 1.01229100 0.58298500 0.00000000"""
3487+
3488+
xyz10 = """O -0.79494500 -0.93969200 0.00000000
3489+
O -0.32753500 1.24003800 0.00000000
3490+
O 1.28811400 -0.24729000 0.00000000
3491+
N 0.14143500 0.11571500 0.00000000
3492+
H -1.65602000 -0.48026800 0.00000000"""
3493+
3494+
xyz11 = """O 1.64973000 -0.57433600 0.02610800
3495+
O 0.49836300 1.28744800 -0.18806200
3496+
N -0.57621600 -0.65116600 0.24595200
3497+
N -1.78357200 -0.10211200 -0.14953800
3498+
N 0.61460400 0.08152700 -0.00952700
3499+
H -0.42001200 -1.61494900 -0.03311600
3500+
H -1.72480300 0.33507600 -1.06884500
3501+
H -2.07362100 0.59363400 0.53038600"""
35023502

35033503
xyz12 = """O 1.10621000 0.00000000 -0.13455300
35043504
O -1.10621000 0.00000000 -0.13455300
35053505
N 0.00000000 0.00000000 0.33490500"""
35063506

3507-
# xyz13 = """O -0.37723000 -1.27051900 0.00000000
3508-
# N -0.12115000 -0.04252600 0.00000000
3509-
# N -0.95339100 0.91468300 0.00000000
3510-
# C 1.31648000 0.33217600 0.00000000
3511-
# H 1.76422500 -0.11051900 -0.89038300
3512-
# H 1.76422500 -0.11051900 0.89038300
3513-
# H 1.40045900 1.41618100 0.00000000
3514-
# H -1.88127600 0.47189500 0.00000000"""
3507+
xyz13 = """O -0.37723000 -1.27051900 0.00000000
3508+
N -0.12115000 -0.04252600 0.00000000
3509+
N -0.95339100 0.91468300 0.00000000
3510+
C 1.31648000 0.33217600 0.00000000
3511+
H 1.76422500 -0.11051900 -0.89038300
3512+
H 1.76422500 -0.11051900 0.89038300
3513+
H 1.40045900 1.41618100 0.00000000
3514+
H -1.88127600 0.47189500 0.00000000"""
35153515

35163516
xyz14 = """S -0.12942800 0.11104800 0.22427200
35173517
O 0.98591500 -1.00752300 -0.31179100
@@ -3576,11 +3576,11 @@ def test_xyz_to_smiles(self):
35763576
mol6 = converter.molecules_from_xyz(converter.str_to_xyz(xyz6), multiplicity=1)[1]
35773577
mol7 = converter.molecules_from_xyz(converter.str_to_xyz(xyz7), multiplicity=1)[1]
35783578
mol8 = converter.molecules_from_xyz(converter.str_to_xyz(xyz8))[1]
3579-
# mol9 = converter.molecules_from_xyz(converter.str_to_xyz(xyz9), multiplicity=1)[1]
3580-
# mol10 = converter.molecules_from_xyz(converter.str_to_xyz(xyz10))[1]
3581-
# mol11 = converter.molecules_from_xyz(converter.str_to_xyz(xyz11))[1]
3579+
mol9 = converter.molecules_from_xyz(converter.str_to_xyz(xyz9), multiplicity=1)[1]
3580+
mol10 = converter.molecules_from_xyz(converter.str_to_xyz(xyz10))[1]
3581+
mol11 = converter.molecules_from_xyz(converter.str_to_xyz(xyz11))[1]
35823582
mol12 = converter.molecules_from_xyz(converter.str_to_xyz(xyz12))[1]
3583-
# mol13 = converter.molecules_from_xyz(converter.str_to_xyz(xyz13))[1]
3583+
mol13 = converter.molecules_from_xyz(converter.str_to_xyz(xyz13))[1]
35843584
mol14 = converter.molecules_from_xyz(converter.str_to_xyz(xyz14))[1]
35853585
mol15 = converter.molecules_from_xyz(converter.str_to_xyz(xyz15))[1]
35863586
mol16 = converter.molecules_from_xyz(converter.str_to_xyz(xyz16))[1]
@@ -3599,11 +3599,11 @@ def test_xyz_to_smiles(self):
35993599
self.assertEqual(mol6.to_smiles(), 'N#S')
36003600
self.assertEqual(mol7.to_smiles(), '[N-]=[NH2+]')
36013601
self.assertEqual(mol8.to_smiles(), 'C#N')
3602-
# self.assertEqual(mol9.to_smiles(), '[N-]=[S+]#N') # gives [N]S#N, multiplicity 3
3603-
# self.assertEqual(mol10.to_smiles(), '[N+](=O)(O)[O-]') # gives None
3604-
# self.assertEqual(mol11.to_smiles(), 'N(N)[N+](=O)[O-]') # gives None
3602+
self.assertEqual(mol9.to_smiles(), '[N-]=[S+]#N') # gives [N]S#N, multiplicity 3
3603+
self.assertEqual(mol10.to_smiles(), '[N+](=O)(O)[O-]') # gives None
3604+
self.assertEqual(mol11.to_smiles(), 'N(N)[N+](=O)[O-]') # gives None
36053605
self.assertEqual(mol12.to_smiles(), '[O]N=O')
3606-
# self.assertEqual(mol13.to_smiles(), 'C[N+]([NH-])=O') # gives None
3606+
self.assertEqual(mol13.to_smiles(), 'C[N+]([NH-])=O') # gives None
36073607
self.assertEqual(mol14.to_smiles(), '[O]S(=O)O')
36083608
self.assertEqual(mol15.to_smiles(), '[N-]=[N+]=N')
36093609
self.assertEqual(mol16.to_smiles(), '[O]N=C')

0 commit comments

Comments
 (0)