Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Zero out observations carried over from previous game
  • Loading branch information
cswinter committed Dec 29, 2019
1 parent 8681b64 commit 7f46e80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gym_codecraft/envs/codecraft_vec_env.py
Expand Up @@ -323,8 +323,8 @@ def observe(self, env_subset=None, obs_config=None):
# print(f"COMPLETED {i} {game} {games[i]} == {self.games[game]} new={game_id}")
self.games[game] = (game_id, pid)
observation = codecraft.observe(game_id, pid)
# TODO
# obs[stride * i:stride * (i + 1)] = codecraft.observation_to_np(observation)
# TODO: use actual observation
obs[stride * i:stride * (i + 1)] = 0.0 # codecraft.observation_to_np(observation)

dones.append(1.0)
infos.append({'episode': {
Expand Down

0 comments on commit 7f46e80

Please sign in to comment.