Commit b43edde6 authored by Philipp Arras's avatar Philipp Arras
Browse files

Fixups

parent 1c8841a0
......@@ -59,7 +59,6 @@ class FFTInterpolator(LinearOperator):
self._check_input(x, mode)
ht = self._ht
finu = self._finu
nx, ny = ht.target.shape
if mode == self.TIMES:
x = ht(x)
x = makeField(finu.target, np.fft.fftshift(x.val))
......
......@@ -23,13 +23,12 @@ import nifty7 as ift
pmp = pytest.mark.parametrize
@pmp('interpolator', ["FFTInterpolator", "LinearInterpolator"])
@pmp("interpolator", ["FFTInterpolator", "LinearInterpolator"])
def test_grid_points(interpolator):
res = 64
vol = 2
sp = ift.RGSpace([res, res], [vol/res, vol/res])
mg = np.mgrid[(slice(0, res),)*2]
sp = ift.RGSpace([res, res], [vol / res, vol / res])
mg = np.mgrid[(slice(0, res),) * 2]
mg = np.array(list(map(np.ravel, mg)))
dist = [list(sp.distances)]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment