Commit 52e58aeb authored by Martin Reinecke's avatar Martin Reinecke
Browse files

remove unnecessary copy

parent 7b97a739
Pipeline #64982 passed with stages
in 8 minutes and 43 seconds
......@@ -110,5 +110,5 @@ class FieldZeroPadder(LinearOperator):
xnew = v[idx + (slice(0, tgtshp[d]),)]
curshp[d] = xnew.shape[d]
v = xnew.copy()
v = xnew
return Field(self._tgt(mode), v)
......@@ -91,5 +91,5 @@ class RegriddingOperator(LinearOperator):
xnew += v[idx + (self._bindex[d-d0]+1,)] * wgt
curshp[d] = xnew.shape[d]
v = xnew.copy()
v = xnew
return Field(self._tgt(mode), xnew)
Markdown is supported
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