|
6 | 6 | import naive |
7 | 7 |
|
8 | 8 |
|
9 | | -test_data = [ |
10 | | - ( |
11 | | - np.array([9, 8100, -60, 7], dtype=np.float64), |
12 | | - np.array([584, -11, 23, 79, 1001, 0, -19], dtype=np.float64), |
13 | | - ), |
14 | | - ( |
15 | | - np.random.uniform(-1000, 1000, [8]).astype(np.float64), |
16 | | - np.random.uniform(-1000, 1000, [64]).astype(np.float64), |
17 | | - ), |
18 | | -] |
19 | | - |
20 | | -window_size = [8, 16, 32] |
21 | | -substitution_locations = [(slice(0, 0), 0, -1, slice(1, 3), [0, 3])] |
22 | | -substitution_values = [np.nan, np.inf] |
23 | | -percentages = [(0.01, 0.1, 1.0)] |
24 | | - |
25 | | - |
26 | 9 | def naive_prescraamp(T_A, m, T_B, s, exclusion_zone=None): |
27 | 10 | distance_matrix = naive.aamp_distance_matrix(T_A, T_B, m) |
28 | 11 |
|
@@ -126,6 +109,24 @@ def naive_scraamp(T_A, m, T_B, percentage, exclusion_zone, pre_scraamp, s): |
126 | 109 | return out |
127 | 110 |
|
128 | 111 |
|
| 112 | +test_data = [ |
| 113 | + ( |
| 114 | + np.array([9, 8100, -60, 7], dtype=np.float64), |
| 115 | + np.array([584, -11, 23, 79, 1001, 0, -19], dtype=np.float64), |
| 116 | + ), |
| 117 | + ( |
| 118 | + np.random.uniform(-1000, 1000, [8]).astype(np.float64), |
| 119 | + np.random.uniform(-1000, 1000, [64]).astype(np.float64), |
| 120 | + ), |
| 121 | +] |
| 122 | + |
| 123 | + |
| 124 | +window_size = [8, 16, 32] |
| 125 | +substitution_locations = [(slice(0, 0), 0, -1, slice(1, 3), [0, 3])] |
| 126 | +substitution_values = [np.nan, np.inf] |
| 127 | +percentages = [(0.01, 0.1, 1.0)] |
| 128 | + |
| 129 | + |
129 | 130 | @pytest.mark.parametrize("T_A, T_B", test_data) |
130 | 131 | def test_prescraamp_self_join(T_A, T_B): |
131 | 132 | m = 3 |
|
0 commit comments