Skip to content

Commit

Permalink
Fix int not iterable error on make_env
Browse files Browse the repository at this point in the history
  • Loading branch information
asrvsn committed Feb 16, 2018
1 parent 92a001b commit 2f4e9fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__pycache__/
*.egg-info/

*.pyc
2 changes: 1 addition & 1 deletion multiagent/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, world, reset_callback=None, reward_callback=None,
self.action_space.append(total_action_space[0])
# observation space
obs_dim = len(observation_callback(agent, self.world))
self.observation_space.append(spaces.Box(low=-np.inf, high=+np.inf, shape=(obs_dim),))
self.observation_space.append(spaces.Box(low=-np.inf, high=+np.inf, shape=(obs_dim,)))
agent.action.c = np.zeros(self.world.dim_c)

# rendering
Expand Down

0 comments on commit 2f4e9fc

Please sign in to comment.