Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
442c5aff
Commit
442c5aff
authored
May 27, 2021
by
Philipp Frank
Browse files
fixup EnergySum
parent
bc2a373c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/operators/energy_operators.py
View file @
442c5aff
...
...
@@ -123,7 +123,7 @@ class LikelihoodOperator(EnergyOperator):
"""
def
get_transformation
(
self
):
"""Construct
s
an Operator that transforms from the input coordinate
"""Construct an Operator that transforms from the input coordinate
system of the likelihood into a coordinate system where the metric is
the Euclidean metric. Returns the dtype in the target coordinate frame
in addition to the Operator.
...
...
@@ -181,9 +181,9 @@ class _EnergySum(EnergyOperator):
self
.
_check_input
(
x
)
islin
=
isinstance
(
x
,
Linearization
)
val
=
x
.
val
if
islin
else
x
res
=
None
if
not
islin
:
res
=
None
for
en
in
self
.
_energies
:
rr
=
en
(
val
.
extract
(
en
.
domain
))
res
=
rr
if
res
is
None
else
res
+
rr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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