Commit 3e42a35d authored by Philipp Arras's avatar Philipp Arras

fixup! Simplify

parent 826c21be
......@@ -104,7 +104,7 @@ class _SlopeRemover(EndomorphicOperator):
res = x - x[self._last]*self._sc
res = x.val_rw()
res[self._last] -= (x*self._sc).sum(axis=self._space, keepdims=True)
res[self._last] -= (res*self._sc).sum(axis=self._space, keepdims=True)
return makeField(self._tgt(mode), res)
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