Skip to content
GitLab
Menu
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
2bc0a415
Commit
2bc0a415
authored
Jun 28, 2018
by
Philipp Arras
Browse files
Readability
parent
fd51b765
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/energies/hamiltonian.py
View file @
2bc0a415
...
...
@@ -54,11 +54,11 @@ class Hamiltonian(Energy):
@
memo
def
curvature
(
self
):
prior_curv
=
self
.
_prior
.
curvature
if
self
.
_ic_samp
is
not
None
:
if
self
.
_ic_samp
is
None
:
c
=
self
.
_lh
.
curvature
+
prior_curv
else
:
c
=
SamplingEnabler
(
self
.
_lh
.
curvature
,
prior_curv
.
inverse
,
self
.
_ic_samp
,
prior_curv
.
inverse
)
else
:
c
=
self
.
_lh
.
curvature
+
prior_curv
return
InversionEnabler
(
c
,
self
.
_ic
,
self
.
_precond
)
def
__str__
(
self
):
...
...
Write
Preview
Supports
Markdown
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