1
0
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:
Zach Dwiel
2018-10-10 16:17:28 -04:00
committed by zach dwiel
parent 700a175902
commit 7220283653

View File

@@ -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]