@@ -93,7 +93,9 @@ def test_interpolated_time_point_thresh(compare_numba_vs_python):
9393 w_in = np .concatenate ([np .arange (- 1 , 5 , 1 ), np .arange (- 1 , 5 , 1 )], dtype = "float" )
9494 w_in [4 ] = np .nan
9595 assert np .isnan (
96- compare_numba_vs_python (interpolated_time_point_thresh , w_in , 1.0 , 11.0 , 0 , np .int8 (105 ))
96+ compare_numba_vs_python (
97+ interpolated_time_point_thresh , w_in , 1.0 , 11.0 , 0 , np .int8 (105 )
98+ )
9799 )
98100
99101 # test for nan if nan is passed to a_threshold
@@ -115,76 +117,98 @@ def test_interpolated_time_point_thresh(compare_numba_vs_python):
115117 # test for nan if t_start out of range
116118 w_in = np .concatenate ([np .arange (- 1 , 5 , 1 ), np .arange (- 1 , 5 , 1 )], dtype = "float" )
117119 assert np .isnan (
118- compare_numba_vs_python (interpolated_time_point_thresh , w_in , 1.0 , 12 , 0 , np .int8 (105 ))
120+ compare_numba_vs_python (
121+ interpolated_time_point_thresh , w_in , 1.0 , 12 , 0 , np .int8 (105 )
122+ )
119123 )
120124
121125 # test walk backward mode 'i'
122126 w_in = np .concatenate ([np .arange (- 1 , 5 , 1 ), np .arange (- 1 , 5 , 1 )], dtype = "float" )
123127 assert (
124- compare_numba_vs_python (interpolated_time_point_thresh , w_in , 1 , 11 , 0 , np .int8 (105 ))
128+ compare_numba_vs_python (
129+ interpolated_time_point_thresh , w_in , 1 , 11 , 0 , np .int8 (105 )
130+ )
125131 == 7.0
126132 )
127133
128134 # test walk forward mode 'i'
129135 w_in = np .concatenate ([np .arange (- 1 , 5 , 1 ), np .arange (- 1 , 5 , 1 )], dtype = "float" )
130136 assert (
131- compare_numba_vs_python (interpolated_time_point_thresh , w_in , 3 , 0 , 1 , np .int8 (105 ))
137+ compare_numba_vs_python (
138+ interpolated_time_point_thresh , w_in , 3 , 0 , 1 , np .int8 (105 )
139+ )
132140 == 4.0
133141 )
134142
135143 # test walk backward mode 'f'
136144 w_in = np .concatenate ([np .arange (- 1 , 5 , 1 ), np .arange (- 1 , 5 , 1 )], dtype = "float" )
137145 assert (
138- compare_numba_vs_python (interpolated_time_point_thresh , w_in , 1 , 11 , 0 , np .int8 (102 ))
146+ compare_numba_vs_python (
147+ interpolated_time_point_thresh , w_in , 1 , 11 , 0 , np .int8 (102 )
148+ )
139149 == 8.0
140150 )
141151
142152 # test walk forward mode 'f'
143153 w_in = np .concatenate ([np .arange (- 1 , 5 , 1 ), np .arange (- 1 , 5 , 1 )], dtype = "float" )
144154 assert (
145- compare_numba_vs_python (interpolated_time_point_thresh , w_in , 3 , 0 , 1 , np .int8 (102 ))
155+ compare_numba_vs_python (
156+ interpolated_time_point_thresh , w_in , 3 , 0 , 1 , np .int8 (102 )
157+ )
146158 == 5.0
147159 )
148160
149161 # test walk backward mode 'f'
150162 w_in = np .concatenate ([np .arange (- 1 , 5 , 1 ), np .arange (- 1 , 5 , 1 )], dtype = "float" )
151163 assert (
152- compare_numba_vs_python (interpolated_time_point_thresh , w_in , 1 , 11 , 0 , np .int8 (99 ))
164+ compare_numba_vs_python (
165+ interpolated_time_point_thresh , w_in , 1 , 11 , 0 , np .int8 (99 )
166+ )
153167 == 7.0
154168 )
155169
156170 # test walk forward mode 'f'
157171 w_in = np .concatenate ([np .arange (- 1 , 5 , 1 ), np .arange (- 1 , 5 , 1 )], dtype = "float" )
158172 assert (
159- compare_numba_vs_python (interpolated_time_point_thresh , w_in , 3 , 0 , 1 , np .int8 (99 ))
173+ compare_numba_vs_python (
174+ interpolated_time_point_thresh , w_in , 3 , 0 , 1 , np .int8 (99 )
175+ )
160176 == 4.0
161177 )
162178
163179 # test walk backward mode 'n'
164180 w_in = np .concatenate ([np .arange (- 1 , 5 , 1 ), np .arange (- 1 , 5 , 1 )], dtype = "float" )
165181 assert (
166- compare_numba_vs_python (interpolated_time_point_thresh , w_in , 1 , 11 , 0 , np .int8 (110 ))
182+ compare_numba_vs_python (
183+ interpolated_time_point_thresh , w_in , 1 , 11 , 0 , np .int8 (110 )
184+ )
167185 == 7.5
168186 )
169187
170188 # test walk forward mode 'n'
171189 w_in = np .concatenate ([np .arange (- 1 , 5 , 1 ), np .arange (- 1 , 5 , 1 )], dtype = "float" )
172190 assert (
173- compare_numba_vs_python (interpolated_time_point_thresh , w_in , 3 , 0 , 1 , np .int8 (110 ))
191+ compare_numba_vs_python (
192+ interpolated_time_point_thresh , w_in , 3 , 0 , 1 , np .int8 (110 )
193+ )
174194 == 4.5
175195 )
176196
177197 # test walk backward mode 'l'
178198 w_in = np .concatenate ([np .arange (- 1 , 5 , 1 ), np .arange (- 1 , 5 , 1 )], dtype = "float" )
179199 assert (
180- compare_numba_vs_python (interpolated_time_point_thresh , w_in , 1.5 , 11 , 0 , np .int8 (108 ))
200+ compare_numba_vs_python (
201+ interpolated_time_point_thresh , w_in , 1.5 , 11 , 0 , np .int8 (108 )
202+ )
181203 == 8.5
182204 )
183205
184206 # test walk forward mode 'l'
185207 w_in = np .concatenate ([np .arange (- 1 , 5 , 1 ), np .arange (- 1 , 5 , 1 )], dtype = "float" )
186208 assert (
187- compare_numba_vs_python (interpolated_time_point_thresh , w_in , 3.5 , 0 , 1 , np .int8 (108 ))
209+ compare_numba_vs_python (
210+ interpolated_time_point_thresh , w_in , 3.5 , 0 , 1 , np .int8 (108 )
211+ )
188212 == 4.5
189213 )
190214
0 commit comments