Skip to content

Commit

Permalink
[Version] 1.2.0 (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini authored Apr 26, 2024
1 parent b0ce86f commit 69b873f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion benchmarl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#


__version__ = "1.1.1"
__version__ = "1.2.0"

import importlib

Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"python": ("https://docs.python.org/3/", None),
"sphinx": ("https://www.sphinx-doc.org/en/master/", None),
"torch": ("https://pytorch.org/docs/master", None),
"torchrl": ("https://pytorch.org/rl", None),
"tensordict": ("https://pytorch.org/tensordict", None),
"torchrl": ("https://pytorch.org/rl/stable/", None),
"tensordict": ("https://pytorch.org/tensordict/stable", None),
}
intersphinx_disabled_domains = ["std"]

Expand Down
4 changes: 2 additions & 2 deletions docs/source/usage/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ For more details, or for installing nightly versions, see the
Install BenchMARL
-----------------

You can just install it from github
You can just install it from PyPi

.. code-block:: console
Expand Down Expand Up @@ -48,7 +48,7 @@ You may want to install the following rendering and logging tools
Install environments
--------------------

All enviornment dependencies are optional in BenchMARL and can be installed separately.
All environment dependencies are optional in BenchMARL and can be installed separately.

VMAS
^^^^
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_version():
url="https://github.com/facebookresearch/BenchMARL",
author="Matteo Bettini",
author_email="[email protected]",
install_requires=["torchrl>=0.3.1", "tqdm", "hydra-core"],
install_requires=["torchrl==0.4.0", "tqdm", "hydra-core"],
extras_require={
"vmas": ["vmas>=1.3.4"],
"pettingzoo": ["pettingzoo[all]>=1.24.3"],
Expand Down
6 changes: 0 additions & 6 deletions test/test_meltingpot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
#


import packaging
import pytest
import torchrl

from benchmarl.algorithms import (
algorithm_config_registry,
Expand Down Expand Up @@ -35,10 +33,6 @@ def _get_unique_envs(names):


@pytest.mark.skipif(not _has_meltingpot, reason="Meltingpot not found")
@pytest.mark.skipif(
packaging.version.parse(torchrl.__version__).base_version <= "0.3.1",
reason="TorchRL <= 0.3.1 does nto support meltingpot",
)
class TestMeltingPot:
@pytest.mark.parametrize("algo_config", algorithm_config_registry.values())
@pytest.mark.parametrize("task", [MeltingPotTask.COMMONS_HARVEST__OPEN])
Expand Down
7 changes: 0 additions & 7 deletions test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@

from typing import List

import packaging
import pytest
import torch
import torchrl

from benchmarl.hydra_config import load_model_config_from_hydra
from benchmarl.models import model_config_registry
Expand Down Expand Up @@ -79,11 +77,6 @@ def test_models_forward_shape(
pytest.skip() # this combination should never happen
if ("gnn" in model_name) and centralised:
pytest.skip("gnn model is always decentralized")
if (
packaging.version.parse(torchrl.__version__).base_version <= "0.3.1"
and "cnn" in model_name
):
pytest.skip("TorchRL <= 0.3.1 does not support MultiAgentCNN")

torch.manual_seed(0)

Expand Down

0 comments on commit 69b873f

Please sign in to comment.