Skip to content

Commit 36286d4

Browse files
wrappers documentation: get to_parallel from utils.conversions (#870)
1 parent bdd92ea commit 36286d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/pz_wrappers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ An environment can be converted from an AEC environment to a parallel environmen
1212
Most parallel environments in PettingZoo only allocate rewards at the end of a cycle. In these environments, the reward scheme of the AEC API an the parallel API is equivalent. If an AEC environment does allocate rewards within a cycle, then the rewards will be allocated at different timesteps in the AEC environment an the Parallel environment. In particular, the AEC environment will allocate all rewards from one time the agent steps to the next time, while the Parallel environment will allocate all rewards from when the first agent stepped to the last agent stepped.
1313

1414
``` python
15-
from pettingzoo.utils import to_parallel
15+
from pettingzoo.utils.conversions import to_parallel
1616
from pettingzoo.butterfly import pistonball_v6
1717
env = pistonball_v6.env()
1818
env = to_parallel(env)
@@ -52,4 +52,4 @@ from pettingzoo.utils import OrderEnforcingWrapper
5252
from pettingzoo.butterfly import pistonball_v6
5353
env = pistonball_v6.env()
5454
env = OrderEnforcingWrapper(env)
55-
```
55+
```

0 commit comments

Comments
 (0)