mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-20 14:02:03 +00:00
Fix deprecated Monitor API for the cem example (#453)
This commit is contained in:
@@ -66,7 +66,7 @@ if __name__ == '__main__':
|
|||||||
# directory, but can't contain previous monitor results. You can
|
# directory, but can't contain previous monitor results. You can
|
||||||
# also dump to a tempdir if you'd like: tempfile.mkdtemp().
|
# also dump to a tempdir if you'd like: tempfile.mkdtemp().
|
||||||
outdir = '/tmp/cem-agent-results'
|
outdir = '/tmp/cem-agent-results'
|
||||||
env = wrappers.Monitor(outdir, force=True)(env)
|
env = wrappers.Monitor(env, outdir, force=True)
|
||||||
|
|
||||||
# Prepare snapshotting
|
# Prepare snapshotting
|
||||||
# ----------------------------------------
|
# ----------------------------------------
|
||||||
|
Reference in New Issue
Block a user