MCPcopy
hub / github.com/Farama-Foundation/PettingZoo / parallel_wrapper_fn

Function parallel_wrapper_fn

pettingzoo/utils/conversions.py:12–18  ·  view source on GitHub ↗
(env_fn: Callable)

Source from the content-addressed store, hash-verified

10
11
12def parallel_wrapper_fn(env_fn: Callable) -> Callable:
13 def par_fn(**kwargs):
14 env = env_fn(**kwargs)
15 env = aec_to_parallel_wrapper(env)
16 return env
17
18 return par_fn
19
20
21def aec_wrapper_fn(par_env_fn: Callable) -> Callable:

Callers 15

rps.pyFile · 0.90
pistonball.pyFile · 0.90
multiwalker.pyFile · 0.90
pursuit.pyFile · 0.90
pong.pyFile · 0.85
othello.pyFile · 0.85
surround.pyFile · 0.85
ice_hockey.pyFile · 0.85
volleyball_pong.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…