@@ -27,62 +27,6 @@ def unidirectional_tis_compiler(cv_and_states):
2727 ),
2828 }
2929
30- # def check_unidirectional_tis(results, state_A, state_B, cv):
31- # assert len(results) == 1
32- # trans_info = results['trans_info']
33- # assert len(trans_info) == 1
34- # assert len(trans_info[0]) == 3
35- # trans = trans_info[0]
36- # assert isinstance(trans, tuple)
37- # assert trans[0] == state_A
38- # assert trans[2] == state_B
39- # assert isinstance(trans[1], paths.VolumeInterfaceSet)
40- # ifaces = trans[1]
41- # assert ifaces.cv == cv
42- # assert ifaces.minvals == float("-inf")
43- # np.testing.assert_allclose(ifaces.maxvals,
44- # [0, np.pi / 10.0, np.pi / 5.0])
45-
46-
47- # def test_mistis_trans_info(cv_and_states, mistis_dict,
48- # unidirectional_tis_compiler):
49- # cv, state_A, state_B = cv_and_states
50- # patch_base = 'paths_cli.compiling.networks'
51- # with mock.patch.dict(_COMPILERS_LOC, unidirectional_tis_compiler):
52- # results = mistis_trans_info(mistis_dict)
53-
54- # check_unidirectional_tis(results, state_A, state_B, cv)
55- # paths.InterfaceSet._reset()
56-
57-
58- # def test_tis_trans_info(cv_and_states):
59- # cv, state_A, state_B = cv_and_states
60- # dct = {
61- # 'initial_state': "A",
62- # 'final_state': "B",
63- # 'cv': 'cv',
64- # 'minvals': 'float("-inf")',
65- # 'maxvals': 'np.array([0, 0.1, 0.2]) * np.pi',
66- # }
67-
68- # compiler = {
69- # 'cv': mock_compiler('cv', named_objs={'cv': cv}),
70- # 'volume': mock_compiler('volume', named_objs={
71- # "A": state_A, "B": state_B
72- # }),
73- # 'interface_set': mock_compiler(
74- # 'interface_set',
75- # type_dispatch={
76- # 'volume-interface-set': VOLUME_INTERFACE_SET_PLUGIN
77- # }
78- # ),
79- # }
80- # with mock.patch.dict(_COMPILERS_LOC, compiler):
81- # results = tis_trans_info(dct)
82-
83- # check_unidirectional_tis(results, state_A, state_B, cv)
84- # paths.InterfaceSet._reset()
85-
8630
8731def test_build_tps_network (cv_and_states ):
8832 _ , state_A , state_B = cv_and_states
0 commit comments