Skip to content

Commit

Permalink
Typo in 'reset' function (#291)
Browse files Browse the repository at this point in the history
Minor typo. I think it should be self.obs, not self.ob.
  • Loading branch information
chrispan68 committed Jan 9, 2022
1 parent a7cdac9 commit 753faea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions textworld/gym/envs/textworld_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def reset(self) -> Tuple[List[str], Dict[str, List[Any]]]:
self.batch_env.load(gamefiles)

self.last_commands = [None] * self.batch_size
self.ob, infos = self.batch_env.reset()
return self.ob, infos
self.obs, infos = self.batch_env.reset()
return self.obs, infos

def skip(self, nb_games: int = 1) -> None:
""" Skip games.
Expand Down

0 comments on commit 753faea

Please sign in to comment.