Skip to content
Snippets Groups Projects
Commit 31fc9217 authored by Christoph von Oy's avatar Christoph von Oy
Browse files

Made dynamic.time_steps() list-like

parent 3e220d97
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,7 @@ class TrivialDynamic(Dynamic):
return len(self.d_steps)
def time_steps(self):
return list(range(len(self.d_steps)))
return range(len(self.d_steps))
def has_index(self, index):
return 0 <= index and index <= len(self.d_steps)
......@@ -188,7 +188,7 @@ class BackedDynamic(Dynamic):
return len(self.indices) - 1
def time_steps(self):
return self.indices
return self.indices[:-1]
def has_index(self, index):
return index in self.indices
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment