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

Add make(max_episode_steps=0) to not apply a TimeLimit wrapper #710

Conversation

pseudo-rnd-thoughts
Copy link
Member

Description

If an environment spec has a max_episode_steps that is not None then there is no way of users to remove the TimeLimit wrapper from the environment stack (without setting an extremely high max episode steps limit)
Therefore, this PR adds a special cases to max_episode_steps for 0 (None was taken as the default value) in order to disable applying the max episode steps parameter. This is very helpful for async or sync vector environments where modifying the environment stack is highly difficult, in particular, async vector env.

@pseudo-rnd-thoughts pseudo-rnd-thoughts merged commit 2af443f into Farama-Foundation:v1.0.0 Sep 8, 2023
6 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