Skip to content

Commit bb9625f

Browse files
authored
Bump version to 1.23.0, fix tutorials and update tutorial requirements (#984)
1 parent a6b5862 commit bb9625f

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

.github/workflows/linux-tutorials-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
python-version: ['3.7', '3.8', '3.9', '3.10'] # '3.11' - broken due to numba
22-
tutorial: ['Tianshou', 'EnvironmentCreation'] # TODO: add back 'CleanRL' after SuperSuit is fixed
22+
tutorial: ['Tianshou', 'EnvironmentCreation', 'CleanRL'] # TODO: add back 'CleanRL' after SuperSuit is fixed
2323
steps:
2424
- uses: actions/checkout@v3
2525
- name: Set up Python ${{ matrix.python-version }}

pettingzoo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

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

15-
__version__ = "1.22.4"
15+
__version__ = "1.23.0"
1616

1717
try:
1818
import sys

tutorials/CleanRL/cleanrl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ def unbatchify(x, env):
265265
with torch.no_grad():
266266
# render 5 episodes out
267267
for episode in range(5):
268-
obs = batchify_obs(env.reset(seed=None), device)
268+
obs, infos = env.reset(seed=None)
269+
obs = batchify_obs(obs, device)
269270
terms = [False]
270271
truncs = [False]
271272
while not any(terms) and not any(truncs):

tutorials/CleanRL/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
SuperSuit==3.7.2
1+
SuperSuit==3.8.0
22
torch==1.13.1
3-
pettingzoo[butterfly]==1.22.4
3+
pettingzoo[butterfly]==1.23.0
44
# remove this line when SuperSuit has been updated to 3.7.3
55
tinyscaler==1.2.5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pettingzoo==1.22.4
1+
pettingzoo==1.23.0

tutorials/Ray/requirements.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
Gymnasium==0.28.1
2-
numpy==1.23.5
3-
PettingZoo==1.22.4
2+
PettingZoo[classic, butterfly]==1.23.0
43
Pillow==9.4.0
5-
ray[rllib]==3.0.0.dev0
4+
ray[rllib]==2.4.0
65
SuperSuit==3.7.2
76
torch==1.13.1
87
tensorflow-probability==0.19.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pettingzoo[classic]==1.22.4
1+
pettingzoo[classic]==1.23.0
22
packaging==21.3
33
tianshou==0.5.0

0 commit comments

Comments
 (0)