Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
kywch committed Mar 12, 2024
1 parent 9f5c968 commit dfb5b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemonred_puffer/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def env_creator(
reward_config: pufferlib.namespace,
) -> pufferlib.emulation.GymnasiumPufferEnv:
env = reward_class(env_config, reward_config)
for cfg, (_, wrapper_class) in zip(wrappers_config, wrapper_classes):
for cfg, (_, wrapper_class) in zip(wrappers_config, wrapper_classes.items()):
env = wrapper_class(env, pufferlib.namespace(**[x for x in cfg.values()][0]))
return pufferlib.emulation.GymnasiumPufferEnv(
env=env, postprocessor_cls=pufferlib.emulation.BasicPostprocessor
Expand Down

0 comments on commit dfb5b44

Please sign in to comment.