Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
644bb4f0
Commit
644bb4f0
authored
Apr 03, 2019
by
Philipp Arras
Browse files
PEP8
parent
f42d04fe
Pipeline
#46342
passed with stages
in 8 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/operator.py
View file @
644bb4f0
...
...
@@ -393,7 +393,8 @@ class _OpSum(Operator):
res
=
lin1
.
new
(
lin1
.
_val
.
unite
(
lin2
.
_val
),
op
(
x
.
jac
))
if
lin1
.
_metric
is
not
None
and
lin2
.
_metric
is
not
None
:
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
)
return
res
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment