Skip to content

Commit 8de3f48

Browse files
committed
Tests: Added an NMD test for an H_Abstraction reaction
This reaction was reported to be problematic in the past in the context of NMD checks
1 parent 5ed855d commit 8de3f48

2 files changed

Lines changed: 2973 additions & 0 deletions

File tree

arc/checks/nmd_test.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,33 @@ def test_isomerization_uses_changed_bonds_as_primary(self):
889889
weights=True)
890890
self.assertTrue(valid)
891891

892+
def test_analyze_ts_nmd_urea_rad_furazan(self):
893+
"""Test the NMD check for NC(=O)[NH] + N=C1ON=NO1 <=> NC(=O)N + [N]=C1ON=NO1 (H abstraction by furazan oxide)."""
894+
rxn = ARCReaction(
895+
r_species=[ARCSpecies(label='urea_rad', smiles='NC(=O)[NH]'),
896+
ARCSpecies(label='furazan_ox', smiles='N=C1ON=NO1')],
897+
p_species=[ARCSpecies(label='urea_ene', smiles='NC(=O)N'),
898+
ARCSpecies(label='furazan_ox_rad', smiles='[N]=C1ON=NO1')])
899+
rxn.ts_species = ARCSpecies(label='TS_1', is_ts=True, xyz=check_xyz_dict(
900+
"""N 1.76136700 0.43616300 -1.05594000
901+
C 2.35916600 -0.16344800 0.05308500
902+
O 3.02161500 -1.17353200 -0.07044200
903+
N 2.19063500 0.49852200 1.22495400
904+
H 1.57577700 -0.27664700 -1.75553300
905+
H 2.73351100 0.19117400 2.01049900
906+
H 1.77338900 1.41123500 1.24758300
907+
N -0.34078300 1.50547700 -0.42830900
908+
C -1.14965600 0.58792300 -0.19749200
909+
O -2.41751300 0.76810800 0.26728800
910+
N -2.98339500 -0.48075000 0.39341200
911+
N -2.18902800 -1.34291700 0.05442600
912+
O -0.99996400 -0.76117400 -0.33805800
913+
H 0.75558200 1.14471800 -0.82621300"""))
914+
self.assertIsNotNone(rxn.atom_map)
915+
self.generic_job.local_path_to_output_file = os.path.join(ARC_TESTING_PATH, 'normal_mode', 'TS_1', 'output.log')
916+
valid = nmd.analyze_ts_normal_mode_displacement(reaction=rxn, job=self.generic_job, amplitude=0.25, weights=True)
917+
self.assertTrue(valid)
918+
892919
@classmethod
893920
def tearDownClass(cls):
894921
"""

0 commit comments

Comments
 (0)