Skip to content

Commit 3ecefe7

Browse files
vtavanandgrigorian
andauthored
Apply suggestions from code review
Co-authored-by: ndgrigorian <[email protected]>
1 parent 0853ac7 commit 3ecefe7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

mkl_fft/_pydfti.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ def rfftn(x, s=None, axes=None, fwd_scale=1.0):
12081208
if a_res is not a_inp:
12091209
a[tind] = a_res # copy in place
12101210
else:
1211-
for ii in range(len(axes)-2, -1, -1):
1211+
for ii in range(len(axes) - 2, -1, -1):
12121212
a = fft(a, s[ii], axes[ii], overwrite_x=True)
12131213
return a
12141214

mkl_fft/tests/test_interfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ def test_axes(func):
154154
res = func(x, axes=(1, 2))
155155
exp = np.fft.rfft2(x, axes=(1, 2))
156156
tol = 64 * np.finfo(np.float64).eps
157-
assert np.allclose(res, exp, atol=tol, rtol=tol)
157+
assert np.allclose(res, exp, atol=tol, rtol=tol)

mkl_fft/tests/test_pocketfft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def test_fft_with_order(dtype, order, fft):
513513
for ax in axes:
514514
X_res = fft(X, axes=ax)
515515
Y_res = fft(Y, axes=ax)
516-
assert_allclose(X_res, Y_res, atol=_tol, rtol=10*_tol)
516+
assert_allclose(X_res, Y_res, atol=_tol, rtol=10 * _tol)
517517
else:
518518
raise ValueError
519519

0 commit comments

Comments
 (0)