Commit cc3e6cb0 authored by Philipp Arras's avatar Philipp Arras
Browse files

Make EnergyHistory iterable

parent bb521cff
Pipeline #75503 passed with stages
in 9 minutes and 12 seconds
......@@ -107,6 +107,9 @@ class EnergyHistory(object):
def reset(self):
self._lst = []
def __getitem__(self, i):
return self._lst[i]
def time_stamps(self):
return [x for x, _ in self._lst]
Supports Markdown
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