Skip to content

Commit c09b1ea

Browse files
committed
Testing: Add no cover to numba and fft functions
1 parent 3f72934 commit c09b1ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

diffsims/pattern/detector_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def _subpixel_gaussian(
322322
shape: Tuple[int, int],
323323
sigma: float,
324324
clip_threshold: float = 1,
325-
) -> np.ndarray:
325+
) -> np.ndarray: # pragma: no cover
326326
out = np.zeros(shape)
327327

328328
# Pre-calculate the constants

diffsims/utils/fourier_transform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,15 @@ def plan_ifft(
216216
)
217217
return plan, plan.input_array
218218

219-
except ImportError:
219+
except ImportError: # pragma: no cover
220220
# Only scipy has a next_fast_len, usually numpy is a little faster
221221
# (note they are not identical)
222222
from scipy.fftpack import fftn, ifftn, ifftshift, fftshift, next_fast_len
223223
from numpy.fft import fftn, ifftn, ifftshift, fftshift
224224

225225
_fftn, _ifftn = fftn, ifftn
226226

227-
def plan_fft(A, n=None, axis=None, norm=None, **_):
227+
def plan_fft(A, n=None, axis=None, norm=None, **_): # pragma: no cover
228228
"""
229229
Plans an fft for repeated use. Parameters are the same as for `pyfftw`'s `fftn`
230230
which are, where possible, the same as the `numpy` equivalents.

0 commit comments

Comments
 (0)