From a7d888f146314d796d2fd9454bd2f2e4f2773d02 Mon Sep 17 00:00:00 2001 From: Katze2664 <40237250+Katze2664@users.noreply.github.com> Date: Tue, 25 Jun 2024 11:00:04 +1000 Subject: [PATCH] Update gym_env.py wrapper_args is a list of lists, not list of dicts --- mushroom_rl/environments/gym_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mushroom_rl/environments/gym_env.py b/mushroom_rl/environments/gym_env.py index 325c2d2b..a1c9834d 100644 --- a/mushroom_rl/environments/gym_env.py +++ b/mushroom_rl/environments/gym_env.py @@ -53,7 +53,7 @@ def __init__(self, name, horizon=None, gamma=0.99, wrappers=None, wrappers_args= if wrappers is not None: if wrappers_args is None: - wrappers_args = [dict()] * len(wrappers) + wrappers_args = [list()] * len(wrappers) for wrapper, args in zip(wrappers, wrappers_args): if isinstance(wrapper, tuple): self.env = wrapper[0](self.env, *args, **wrapper[1])