Farama-Foundation / SuperSuit

A collection of wrappers for Gymnasium and PettingZoo environments (being merged into gymnasium.wrappers and pettingzoo.wrappers
Other
441 stars 56 forks source link

Fix rendering for ProcConcatVec envs #234

Closed efosong closed 8 months ago

efosong commented 8 months ago

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.