We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f154e2e commit aea50d9Copy full SHA for aea50d9
tests/test_ostinato.py
@@ -249,3 +249,13 @@ def test_extract_several_consensus_ostinatoed(dask_cluster):
249
Ts_ref[i][np.isfinite(Ts_ref[i])],
250
Ts_comp[i][np.isfinite(Ts_comp[i])],
251
)
252
+
253
254
+@pytest.mark.filterwarnings(
255
+ "error:divide by zero encountered in divide", category=RuntimeWarning
256
+)
257
+def test_ostinato_divide_by_zero():
258
+ Ts = [np.random.rand(n) for n in [64, 128, 256]]
259
+ m = 5
260
+ Ts[0][:m] = np.nan
261
+ stumpy.ostinato(Ts, m)
0 commit comments