Commit 6d63329f authored by Philipp Arras's avatar Philipp Arras

First fix for sample drawing in sum operators

parent cc59f4ba
......@@ -193,6 +193,9 @@ class SumOperator(LinearOperator):
"cannot draw from inverse of this operator")
res = None
for op in self._ops:
from .simple_linear_operators import NullOperator
if isinstance(op, NullOperator):
continue
tmp = op.draw_sample(from_inverse, dtype)
res = tmp if res is None else res.unite(tmp)
return 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