Currently the render method, when called, raises an error; TypeError: render() takes 1 positional argument but 2 were given
This is because the base GridWorld environment does not expect any argument in its render method while gym wrappers have the mode argument by default.
This fix updates the render of gym wrappers to call self.env.render() if the wrapped environment is GridWorld and self.env.render(mode, **kwargs) otherwise.
Currently the render method, when called, raises an error;
TypeError: render() takes 1 positional argument but 2 were given
This is because the base
GridWorld
environment does not expect any argument in its render method while gym wrappers have themode
argument by default.This fix updates the
render
of gym wrappers to callself.env.render()
if the wrapped environment isGridWorld
andself.env.render(mode, **kwargs)
otherwise.Also, a bug in the render_size is corrected.