Commit 644bb4f0 authored by Philipp Arras's avatar Philipp Arras

PEP8

parent f42d04fe
Pipeline #46342 passed with stages
in 8 minutes and 46 seconds
...@@ -393,7 +393,8 @@ class _OpSum(Operator): ...@@ -393,7 +393,8 @@ class _OpSum(Operator):
res = lin1.new(lin1._val.unite(lin2._val), op(x.jac)) res = lin1.new(lin1._val.unite(lin2._val), op(x.jac))
if lin1._metric is not None and lin2._metric is not None: if lin1._metric is not None and lin2._metric is not None:
from .sandwich_operator import SandwichOperator from .sandwich_operator import SandwichOperator
met = SandwichOperator.make(x.jac, lin1._metric._myadd(lin2._metric, False)) met = lin1._metric._myadd(lin2._metric, False)
met = SandwichOperator.make(x.jac, met)
res = res.add_metric(met) res = res.add_metric(met)
return res 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