Skip to content

Commit 03c68d4

Browse files
committed
tst
1 parent a5dc2fb commit 03c68d4

1 file changed

Lines changed: 45 additions & 6 deletions

File tree

arc/job/adapters/ts/linear_test.py

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,9 +1083,26 @@ def test_interpolate_1_2_insertion_co(self):
10831083
ts_xyzs_dispatch = interpolate(rxn, weight=0.5)
10841084
self.assertIsNotNone(ts_xyzs_dispatch)
10851085
self.assertEqual(len(ts_xyzs_dispatch), len(ts_xyzs))
1086-
for ts_xyz in ts_xyzs:
1087-
print('\n\n***********')
1088-
print(xyz_to_str(ts_xyz))
1086+
expected_ts = """C -0.40644161 0.93028658 -1.13219412
1087+
C 0.06717401 0.01697425 0.00280795
1088+
C 1.47259752 0.42702876 0.45367616
1089+
C 0.06882160 -1.44190079 -0.46444263
1090+
C -1.12744899 0.15390179 1.55062148
1091+
O -2.12018333 0.87313919 1.60438214
1092+
H 0.25665086 0.85928946 -2.00150834
1093+
H -1.41834393 0.66505644 -1.45957610
1094+
H -0.43147701 1.97894049 -0.81412156
1095+
H 1.48279018 1.45890167 0.82353577
1096+
H 1.83237630 -0.21160269 1.26879518
1097+
H 2.19094503 0.35635213 -0.37050110
1098+
H 0.73390517 -1.58346878 -1.32345883
1099+
H 0.40195890 -2.11601880 0.33323885
1100+
H -0.93707925 -1.76281070 -0.75913154
1101+
H 0.11567616 -0.67766058 1.34266988"""
1102+
self.assertTrue(almost_equal_coords(ts_xyzs_dispatch[0], str_to_xyz(expected_ts)))
1103+
# for ts_xyz in ts_xyzs:
1104+
# print('\n\n***********')
1105+
# print(xyz_to_str(ts_xyz))
10891106

10901107
def test_interpolate_1_2_insertion_carbene(self):
10911108
"""Test the interpolate_addition() function for 1,2_Insertion_carbene: CH2 + C4H6 <=> C5H8"""
@@ -1285,6 +1302,28 @@ def test_interpolate_1_2_xy_interchange(self):
12851302
self.assertAlmostEqual(d_f_c3, 1.77, delta=0.05, msg=f'F-C3 dist {d_f_c3:.3f}')
12861303
self.assertAlmostEqual(d_f_c1, 1.77, delta=0.05, msg=f'F-C1 dist {d_f_c1:.3f}')
12871304
self.assertAlmostEqual(d_cc, 1.54, delta=0.10, msg=f'C-C dist {d_cc:.3f}')
1305+
for ts_xyz in ts_xyzs:
1306+
print('\n\n***********')
1307+
print(xyz_to_str(ts_xyz))
1308+
expected_ts = """C -2.19165340 -1.06342386 0.64288457
1309+
C -1.10438235 -0.01824702 0.85411769
1310+
O -0.64883361 1.32151972 -0.33752001
1311+
C 0.13970677 -0.31671404 0.00437792
1312+
F 0.39598914 -0.28189864 1.75537970
1313+
C 1.24160324 0.72514346 0.18806220
1314+
C 2.48523729 0.36649099 -0.61207922
1315+
H -3.06903964 -0.82895209 1.25533763
1316+
H -2.53109848 -1.07583207 -0.39863056
1317+
H -1.83804884 -2.06410142 0.90888898
1318+
H -0.83109839 0.00685736 1.91457298
1319+
H -0.75279646 1.33602209 -1.30813747
1320+
H 0.51885825 -1.31951225 0.23044429
1321+
H 0.88976298 1.70723131 -0.14754737
1322+
H 1.50673852 0.80849260 1.24797123
1323+
H 3.26058055 1.12528022 -0.46687147
1324+
H 2.26228063 0.30987172 -1.68227239
1325+
H 2.89130493 -0.59895508 -0.29374226"""
1326+
self.assertTrue(almost_equal_coords(ts_xyzs[0], str_to_xyz(expected_ts)))
12881327

12891328
def test_interpolate_1_2_shift_c(self):
12901329
"""Test the interpolate_isomerization() function for 1,2_shiftC: CC[C]1C=CC=C1 <=> [CH2]C1(C)C=CC=C1"""
@@ -1349,9 +1388,9 @@ def test_interpolate_1_2_shift_c(self):
13491388
msg=f'H[{h_idx}] is detached: nearest heavy atom at {nearest_dist:.3f} A\n'
13501389
f'{xyz_to_str(ts_xyz)}')
13511390
self.assertEqual(len(ts_xyzs), 2)
1352-
# for ts_xyz in ts_xyzs:
1353-
# print('\n\n***********')
1354-
# print(xyz_to_str(ts_xyz))
1391+
for ts_xyz in ts_xyzs:
1392+
print('\n\n***********')
1393+
print(xyz_to_str(ts_xyz))
13551394
expected_ts_0 = """C -0.30959679 0.71818290 -2.43296062
13561395
C 1.04291313 0.60286397 -0.95092867
13571396
C -0.22666985 0.03570512 -0.41369378

0 commit comments

Comments
 (0)