Commit d81b17e5 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

bug fix

parent 2c13c8f0
......@@ -58,7 +58,7 @@ class RegriddingOperator(LinearOperator):
for d in range(ndim):
tmp = np.arange(new_shape[d])*(newdist[d]/dom.distances[d])
self._bindex[d] = np.minimum(dom.shape[d]-2, tmp.astype(
self._frac = tmp-self._bindex[d]
self._frac[d] = tmp-self._bindex[d]
def apply(self, x, mode):
self._check_input(x, mode)
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