Skip to content

Commit ee58563

Browse files
committed
revert environment yml file and fix coverage
1 parent 3fde978 commit ee58563

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

environment.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,4 @@ dependencies:
2727
- jupyterlab-myst>=2.0.0
2828
- myst-nb>=1.0.0
2929
- polars>=1.14.0
30-
- fftw>=3.3
31-
- pyfftw>=0.15.0
3230
- numba-cuda>=0.24.0

stumpy/sdp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from . import config
88

9-
try:
9+
try: # pragma: no cover
1010
import pyfftw
1111

1212
FFTW_IS_AVAILABLE = True
@@ -108,7 +108,7 @@ def _pocketfft_sliding_dot_product(Q, T):
108108
return c2r(False, np.multiply(fft_2d[0], fft_2d[1]), n=next_fast_n)[m - 1 : n]
109109

110110

111-
class _PYFFTW_SLIDING_DOT_PRODUCT:
111+
class _PYFFTW_SLIDING_DOT_PRODUCT: # pragma: no cover
112112
"""
113113
A class to compute the sliding dot product using FFTW via pyfftw.
114114
@@ -286,7 +286,7 @@ def __call__(self, Q, T, n_threads=1, planning_flag="FFTW_ESTIMATE"):
286286
return real_arr[m - 1 : n]
287287

288288

289-
if FFTW_IS_AVAILABLE:
289+
if FFTW_IS_AVAILABLE: # pragma: no cover
290290
_pyfftw_sliding_dot_product = _PYFFTW_SLIDING_DOT_PRODUCT()
291291
else: # pragma: no cover
292292
_pyfftw_sliding_dot_product = None

tests/test_sdp.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ def test_sdp_power2():
182182
return
183183

184184

185-
def test_pyfftw_sdp_max_n():
186-
if not PYFFTW_IMPORTED: # pragma: no cover
185+
def test_pyfftw_sdp_max_n(): # pragma: no cover
186+
if not PYFFTW_IMPORTED:
187187
pytest.skip("Skipping Test PyFFTW Not Installed")
188188

189189
# When `len(T)` larger than `max_n` in pyfftw_sdp,
@@ -203,8 +203,8 @@ def test_pyfftw_sdp_max_n():
203203
return
204204

205205

206-
def test_pyfftw_sdp_cache():
207-
if not PYFFTW_IMPORTED: # pragma: no cover
206+
def test_pyfftw_sdp_cache(): # pragma: no cover
207+
if not PYFFTW_IMPORTED:
208208
pytest.skip("Skipping Test PyFFTW Not Installed")
209209

210210
# To ensure that the caching mechanism in
@@ -228,13 +228,13 @@ def test_pyfftw_sdp_cache():
228228
return
229229

230230

231-
def test_pyfftw_sdp_update_arrays():
232-
if not PYFFTW_IMPORTED: # pragma: no cover
231+
def test_pyfftw_sdp_update_arrays(): # pragma: no cover
232+
if not PYFFTW_IMPORTED:
233233
pytest.skip("Skipping Test PyFFTW Not Installed")
234234

235235
# To ensure that the cached FFTW objects
236-
# can be reused when preallocated arrays
237-
# are updated.
236+
# can be reused later when preallocated
237+
# arrays were updated.
238238
sliding_dot_product = sdp._PYFFTW_SLIDING_DOT_PRODUCT(max_n=2**10)
239239

240240
n_threads = 1

0 commit comments

Comments
 (0)