add len(Episode)
This commit is contained in:
1 parent
700a175902
commit
7220283653
1 file changed
+3
@@ -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