Skip to content

Commit

Permalink
Export wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
ffelten committed May 23, 2024
1 parent 7e9f5b8 commit f6914a4
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lastpage:
introduction/install
introduction/api
wrappers/wrappers
wrappers/vector_wrappers
examples/morl_baselines
```

Expand Down
20 changes: 20 additions & 0 deletions docs/wrappers/vector_wrappers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: "Vector Wrappers"
---

# Vector Wrappers

Similar to the normal wrappers, MO-Gymnasium provides a few wrappers that are specifically designed to work with vectorized environments. They are all available directly from the `mo_gymnasium.wrappers.vector` module.


## `MOSyncVectorEnv`

```{eval-rst}
.. autoclass:: mo_gymnasium.wrappers.vector.MOSyncVectorEnv
```

## `MORecordEpisodeStatistics`

```{eval-rst}
.. autoclass:: mo_gymnasium.wrappers.vector.MORecordEpisodeStatistics
```
10 changes: 5 additions & 5 deletions docs/wrappers/wrappers.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: "Wrappers"

# Wrappers

A few wrappers inspired from Gymnasium's wrappers are available in MO-Gymnasium. They are all available directly from the `mo_gymnasium` module.
A few wrappers inspired from Gymnasium's wrappers are available in MO-Gymnasium. They are all available directly from the `mo_gymnasium.wrappers` module.


## `LinearReward`
Expand All @@ -26,14 +26,14 @@ A few wrappers inspired from Gymnasium's wrappers are available in MO-Gymnasium.
.. autoclass:: mo_gymnasium.wrappers.MOClipReward
```

## `MOSyncVectorEnv`
## `MORecordEpisodeStatistics`

```{eval-rst}
.. autoclass:: mo_gymnasium.wrappers.MOSyncVectorEnv
.. autoclass:: mo_gymnasium.wrappers.MORecordEpisodeStatistics
```

## `MORecordEpisodeStatistics`
## `MOMaxAndSkipObservation`

```{eval-rst}
.. autoclass:: mo_gymnasium.wrappers.MORecordEpisodeStatistics
.. autoclass:: mo_gymnasium.wrappers.MOMaxAndSkipObservation
```
1 change: 1 addition & 0 deletions mo_gymnasium/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Envs
import mo_gymnasium.envs
from mo_gymnasium import wrappers

# Utils
from mo_gymnasium.utils import make
Expand Down
1 change: 1 addition & 0 deletions mo_gymnasium/wrappers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Contains all wrappers (vectors or not)."""

from mo_gymnasium.wrappers import vector
from mo_gymnasium.wrappers.wrappers import (
LinearReward,
MOClipReward,
Expand Down

0 comments on commit f6914a4

Please sign in to comment.