mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-18 12:57:38 +00:00
Go from decorator to constructor syntax for Monitor; add note to What's New
This commit is contained in:
@@ -40,7 +40,7 @@ if __name__ == '__main__':
|
||||
# will be namespaced). You can also dump to a tempdir if you'd
|
||||
# like: tempfile.mkdtemp().
|
||||
outdir = '/tmp/random-agent-results'
|
||||
env = wrappers.Monitor(directory=outdir, force=True)(env)
|
||||
env = wrappers.Monitor(env, directory=outdir, force=True)
|
||||
env.seed(0)
|
||||
agent = RandomAgent(env.action_space)
|
||||
|
||||
|
Reference in New Issue
Block a user