Skip to content

Commit

Permalink
Update gymnasium_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 5c3170e commit 752e809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mushroom_rl/environments/gymnasium_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(self, name, horizon=None, gamma=0.99, headless = False, wrappers=No

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 752e809

Please sign in to comment.