Commit c81c1a88 authored by Martin Reinecke's avatar Martin Reinecke

fix by Silvan

parent 103043d1
Pipeline #25684 passed with stages
in 5 minutes and 54 seconds
......@@ -138,11 +138,10 @@ class LinearOperator(NiftyMetaBase()):
other = self._toOperator(other, self.domain)
return SumOperator.make([self, other], [False, True])
# MR FIXME: this might be more complicated ...
def __rsub__(self, other):
from .sum_operator import SumOperator
other = self._toOperator(other, self.domain)
return SumOperator.make(other, self, [False, True])
return SumOperator.make([other, self], [False, True])
@abc.abstractproperty
def capability(self):
......
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