Skip to content

Commit

Permalink
Update gym_env.py
Browse files Browse the repository at this point in the history
wrapper_args is a list of lists, not list of dicts
  • Loading branch information
Katze2664 authored Jun 25, 2024
1 parent 752e809 commit a7d888f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mushroom_rl/environments/gym_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit a7d888f

Please sign in to comment.