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