Skip to content

Commit 6e74c33

Browse files
committed
MAINT: remove interp from space arguments
1 parent 5a904c9 commit 6e74c33

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

odl/trafos/fourier.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,10 +1288,12 @@ def _postprocess(self, x, out=None):
12881288
out = self._tmp_r if self._tmp_r is not None else self._tmp_f
12891289
else:
12901290
out = self._tmp_f
1291+
# TODO(kohr-h): Add `interp` to operator or simplify it by not
1292+
# performing interpolation filter
12911293
return dft_postprocess_data(
12921294
out, real_grid=self.domain.grid, recip_grid=self.range.grid,
12931295
shift=self.shifts, axes=self.axes, sign=self.sign,
1294-
interp=self.domain.interp, op='multiply', out=out)
1296+
interp='nearest', op='multiply', out=out)
12951297

12961298
def _call_numpy(self, x):
12971299
"""Return ``self(x)`` for numpy back-end.
@@ -1507,10 +1509,12 @@ def _preprocess(self, x, out=None):
15071509
out = self._tmp_r if self._tmp_r is not None else self._tmp_f
15081510
else:
15091511
out = self._tmp_f
1512+
# TODO(kohr-h): Add `interp` to operator or simplify it by not
1513+
# performing interpolation filter
15101514
return dft_postprocess_data(
15111515
x, real_grid=self.range.grid, recip_grid=self.domain.grid,
15121516
shift=self.shifts, axes=self.axes, sign=self.sign,
1513-
interp=self.domain.interp, op='divide', out=out)
1517+
interp='nearest', op='divide', out=out)
15141518

15151519
def _postprocess(self, x, out=None):
15161520
"""Return the post-processed version of ``x``.

0 commit comments

Comments
 (0)