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

Add render method with same signature as SB3 underlying class #228

Closed elliottower closed 1 year ago

elliottower commented 1 year ago

This PR fixes the render() method not matching the signature as SB3's VecEnvWrapper class, fixing #223

elliottower commented 1 year ago

This doesn't affect anything really, it just allows you to use the proper syntax that SB3 expects, and if you happen to have ansi or rgb_array as your underlying render_mode and your environment's render method is defined to return a value, then that will be returned to SB3, otherwise nothing happens.