From b6893c9c6a97ef44d175a908c64a78e18f7903d7 Mon Sep 17 00:00:00 2001 From: Holger Kohr Date: Sat, 21 Oct 2017 23:13:12 +0200 Subject: [PATCH] BUG: fix in-out aliasing issue in OperatorSum, closes #1181 --- odl/operator/operator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odl/operator/operator.py b/odl/operator/operator.py index 1bd9c72d7e6..31beeafd205 100644 --- a/odl/operator/operator.py +++ b/odl/operator/operator.py @@ -1156,8 +1156,8 @@ def _call(self, x, out=None): else: tmp = (self.__tmp_ran if self.__tmp_ran is not None else self.range.element()) - self.left(x, out=out) - self.right(x, out=tmp) + self.left(x, out=tmp) + self.right(x, out=out) out += tmp def derivative(self, x):