Skip to content

Commit c96744e

Browse files
committed
Update to Gymnasium 1.2.0
1 parent 9e5ccc1 commit c96744e

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

docs/guide/examples.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ you can find links to some of these wrappers in `issue #772 <https://github.com/
746746
- Isaac Lab wrapper: `link <https://github.com/isaac-sim/IsaacLab/blob/main/source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/utils/wrappers/sb3.py>`__
747747
- Brax: `link <https://gist.github.com/araffin/a7a576ec1453e74d9bb93120918ef7e7>`__
748748
- EnvPool: `link <https://github.com/sail-sg/envpool/blob/main/examples/sb3_examples/ppo.py>`__
749+
- Getting SAC to Work on a Massive Parallel Simulator: https://araffin.github.io/post/sac-massive-sim/
749750

750751

751752
SB3 with DeepMind Control (dm_control)

docs/misc/changelog.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Changelog
44
==========
55

6-
Release 2.7.0a0 (WIP)
6+
Release 2.7.0a1 (WIP)
77
--------------------------
88

99
Breaking Changes:
@@ -13,6 +13,7 @@ New Features:
1313
^^^^^^^^^^^^^
1414
- Added support for n-step returns for off-policy algorithms via the `n_steps` parameter
1515
- Added ``NStepReplayBuffer`` that allows to compute n-step returns without additional memory requirement (and without for loops)
16+
- Added Gymnasium v1.2 support
1617

1718
Bug Fixes:
1819
^^^^^^^^^^

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
packages=[package for package in find_packages() if package.startswith("stable_baselines3")],
7777
package_data={"stable_baselines3": ["py.typed", "version.txt"]},
7878
install_requires=[
79-
"gymnasium>=0.29.1,<1.2.0",
79+
"gymnasium>=0.29.1,<1.3.0",
8080
"numpy>=1.20,<3.0",
8181
"torch>=2.3,<3.0",
8282
# For saving models

stable_baselines3/common/results_plotter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def rolling_window(array: np.ndarray, window: int) -> np.ndarray:
2424
:param window: length of the rolling window
2525
:return: rolling window on the input array
2626
"""
27-
shape = array.shape[:-1] + (array.shape[-1] - window + 1, window)
27+
shape = array.shape[:-1] + (array.shape[-1] - window + 1, window) # noqa: RUF005
2828
strides = (*array.strides, array.strides[-1])
2929
return np.lib.stride_tricks.as_strided(array, shape=shape, strides=strides)
3030

stable_baselines3/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.0a0
1+
2.7.0a1

0 commit comments

Comments
 (0)