Assure reset of _last_timestep
This commit is contained in:
parent
4e883511d3
commit
e5151e1a32
1 changed files with 9 additions and 0 deletions
|
@ -31,6 +31,15 @@ class Node(object):
|
|||
|
||||
self.forward_in_time_on_next_override = False
|
||||
|
||||
@property
|
||||
def first_timestep(self):
|
||||
return self._first_timestep
|
||||
|
||||
@first_timestep.setter
|
||||
def first_timestep(self, value):
|
||||
self._first_timestep = value
|
||||
self._last_timestep = None # reset
|
||||
|
||||
def __eq__(self, other):
|
||||
return ((isinstance(other, self.__class__)
|
||||
or isinstance(self, other.__class__))
|
||||
|
|
Loading…
Reference in a new issue