add len(Episode)

This commit is contained in:
Zach Dwiel
2018-10-23 19:58:17 -04:00
committed by zach dwiel
parent 700a175902
commit 7220283653
+3
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]