Skip to content

Commit

Permalink
[Spaces] Multidimensional observations reflected in spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed May 2, 2024
1 parent ffa6c60 commit 243d474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmas/simulator/environment/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def get_agent_observation_space(self, agent: Agent, obs: AGENT_OBS_TYPE):
return spaces.Box(
low=-np.float32("inf"),
high=np.float32("inf"),
shape=(len(obs[0]),),
shape=obs.shape[1:],
dtype=np.float32,
)
elif isinstance(obs, Dict):
Expand Down

0 comments on commit 243d474

Please sign in to comment.