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
cc3e6cb0
Commit
cc3e6cb0
authored
May 25, 2020
by
Philipp Arras
Browse files
Make EnergyHistory iterable
parent
bb521cff
Pipeline
#75503
passed with stages
in 9 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/minimization/iteration_controllers.py
View file @
cc3e6cb0
...
...
@@ -107,6 +107,9 @@ class EnergyHistory(object):
def
reset
(
self
):
self
.
_lst
=
[]
def
__getitem__
(
self
,
i
):
return
self
.
_lst
[
i
]
@
property
def
time_stamps
(
self
):
return
[
x
for
x
,
_
in
self
.
_lst
]
...
...
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