Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 7b64649

Browse files
committed
Revert "1.4.9 (#170)"
This reverts commit eaf731c.
1 parent eaf731c commit 7b64649

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

benchmarl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66

77

8-
__version__ = "1.4.0"
8+
__version__ = "1.3.0"
99

1010
import importlib
1111

benchmarl/environments/vmas/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ def action_mask_spec(self, env: EnvBase) -> Optional[Composite]:
8989
return None
9090

9191
def observation_spec(self, env: EnvBase) -> Composite:
92-
observation_spec = env.full_observation_spec_unbatched.clone()
92+
observation_spec = env.unbatched_observation_spec.clone()
9393
for group in self.group_map(env):
9494
if "info" in observation_spec[group]:
9595
del observation_spec[(group, "info")]
9696
return observation_spec
9797

9898
def info_spec(self, env: EnvBase) -> Optional[Composite]:
99-
info_spec = env.full_observation_spec_unbatched.clone()
99+
info_spec = env.unbatched_observation_spec.clone()
100100
for group in self.group_map(env):
101101
del info_spec[(group, "observation")]
102102
for group in self.group_map(env):
@@ -106,7 +106,7 @@ def info_spec(self, env: EnvBase) -> Optional[Composite]:
106106
return None
107107

108108
def action_spec(self, env: EnvBase) -> Composite:
109-
return env.full_action_spec_unbatched
109+
return env.unbatched_action_spec
110110

111111
@staticmethod
112112
def env_name() -> str:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def get_version():
4646
url="https://github.com/facebookresearch/BenchMARL",
4747
author="Matteo Bettini",
4848
author_email="mb2389@cl.cam.ac.uk",
49-
install_requires=["torchrl~=0.7.0", "tqdm", "hydra-core", "torchvision", "av<14"],
49+
install_requires=["torchrl~=0.6.0", "tqdm", "hydra-core", "torchvision", "av<14"],
5050
extras_require={
5151
"vmas": ["vmas>=1.3.4"],
5252
"pettingzoo": ["pettingzoo[all]>=1.24.3"],

0 commit comments

Comments
 (0)