Skip to content

Commit

Permalink
Bump version to 1.23.0, fix tutorials and update tutorial requirements (
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottower committed May 15, 2023
1 parent a6b5862 commit bb9625f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-tutorials-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10'] # '3.11' - broken due to numba
tutorial: ['Tianshou', 'EnvironmentCreation'] # TODO: add back 'CleanRL' after SuperSuit is fixed
tutorial: ['Tianshou', 'EnvironmentCreation', 'CleanRL'] # TODO: add back 'CleanRL' after SuperSuit is fixed
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion pettingzoo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "hide"

__version__ = "1.22.4"
__version__ = "1.23.0"

try:
import sys
Expand Down
3 changes: 2 additions & 1 deletion tutorials/CleanRL/cleanrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ def unbatchify(x, env):
with torch.no_grad():
# render 5 episodes out
for episode in range(5):
obs = batchify_obs(env.reset(seed=None), device)
obs, infos = env.reset(seed=None)
obs = batchify_obs(obs, device)
terms = [False]
truncs = [False]
while not any(terms) and not any(truncs):
Expand Down
4 changes: 2 additions & 2 deletions tutorials/CleanRL/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SuperSuit==3.7.2
SuperSuit==3.8.0
torch==1.13.1
pettingzoo[butterfly]==1.22.4
pettingzoo[butterfly]==1.23.0
# remove this line when SuperSuit has been updated to 3.7.3
tinyscaler==1.2.5
2 changes: 1 addition & 1 deletion tutorials/EnvironmentCreation/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pettingzoo==1.22.4
pettingzoo==1.23.0
5 changes: 2 additions & 3 deletions tutorials/Ray/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
Gymnasium==0.28.1
numpy==1.23.5
PettingZoo==1.22.4
PettingZoo[classic, butterfly]==1.23.0
Pillow==9.4.0
ray[rllib]==3.0.0.dev0
ray[rllib]==2.4.0
SuperSuit==3.7.2
torch==1.13.1
tensorflow-probability==0.19.0
Expand Down
2 changes: 1 addition & 1 deletion tutorials/Tianshou/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pettingzoo[classic]==1.22.4
pettingzoo[classic]==1.23.0
packaging==21.3
tianshou==0.5.0

0 comments on commit bb9625f

Please sign in to comment.