Skip to content

Commit 2f4e9fc

Browse files
committed
Fix int not iterable error on make_env
1 parent 92a001b commit 2f4e9fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__pycache__/
22
*.egg-info/
3-
3+
*.pyc

multiagent/environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, world, reset_callback=None, reward_callback=None,
6565
self.action_space.append(total_action_space[0])
6666
# observation space
6767
obs_dim = len(observation_callback(agent, self.world))
68-
self.observation_space.append(spaces.Box(low=-np.inf, high=+np.inf, shape=(obs_dim),))
68+
self.observation_space.append(spaces.Box(low=-np.inf, high=+np.inf, shape=(obs_dim,)))
6969
agent.action.c = np.zeros(self.world.dim_c)
7070

7171
# rendering

0 commit comments

Comments
 (0)