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 rendering for ProcConcatVec envs #234

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

efosong
Copy link
Contributor

@efosong efosong commented Nov 10, 2023

Since the render() function no longer takes a mode parameter, ProcConcatVec could not call render(). This is a simple PR to fix that. mode is replaced by the render_mode attribute of the vec env (which also needs to be copied from the parent env by the ConcatVecEnv class.

I'm unsure whether different render_modes should also be returning something (e.g. should ansi render modes also return something?). With this PR I've just kept the logic the same as the previous version.

@elliottower elliottower merged commit 87eb9d0 into Farama-Foundation:master Nov 28, 2023
1 of 5 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.

2 participants