Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix make_vec for sync or async and modifying make arguments #1027

Merged

Conversation

pseudo-rnd-thoughts
Copy link
Member

Description

When running gym.make_vec("CartPole-v1", vectorization_mode="sync", max_episode_steps=5), this would fail as the max_episode_steps=5 was passed to the environment kwargs and make kwargs.
This PR solves the issue by not passing the environment kwargs and only the make kwargs (which include the environment kwargs already)

@pseudo-rnd-thoughts pseudo-rnd-thoughts merged commit fb5112f into Farama-Foundation:main Apr 17, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant