mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 11:40:18 +01:00
add len(Episode)
This commit is contained in:
@@ -638,6 +638,9 @@ class Episode(object):
|
|||||||
def length(self):
|
def length(self):
|
||||||
return self._length
|
return self._length
|
||||||
|
|
||||||
|
def __len__(self):
|
||||||
|
return self.length()
|
||||||
|
|
||||||
def get_transition(self, transition_idx):
|
def get_transition(self, transition_idx):
|
||||||
return self.transitions[transition_idx]
|
return self.transitions[transition_idx]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user