Commit Graph

20 Commits

Author SHA1 Message Date
Tom Brown
69c1cda01c Downgrade DoubleWrap error to warning 2016-12-28 13:08:47 -08:00
Jie Tang
10f7e4ffb0 Go from decorator to constructor syntax for Monitor; add note to What's New 2016-12-28 13:08:47 -08:00
Jie Tang
0d02a34de2 Remove timestep enforcement from monitor, adjust TimeLimit semantics to match existing monitor, fix test for env reuse 2016-12-28 13:08:47 -08:00
Jie Tang
a4637dc1ee remove typo 2016-12-28 13:08:47 -08:00
Jie Tang
557c25ea5f Add TimeLimit wrapper to gym, make default monitor wrapper use TimeLimit, add test for TimeLimit reset behavior 2016-12-28 13:08:47 -08:00
Tom Brown
2d44ed4968 Add Monitored wrapper (#434)
* Add WIP Monitored wrapper

* Remove irrelevant render after close monitor test

* py27 compatibility

* Fix test_benchmark

* Move Monitored out of wrappers __init__

* Turn Monitored into a function that returns a Monitor class

* Fix monitor tests

* Remove deprecated test

* Remove deprecated utility

* Prevent duplicate wrapping, add test

* Fix test

* close env in tests to prevent writing to nonexistent file

* Disable semisuper tests

* typo

* Fix failing spec

* Fix monitoring on semisuper tasks

* Allow disabling of duplicate check

* Rename MonitorManager

* Monitored -> Monitor

* Clean up comments

* Remove cruft
2016-12-23 16:21:42 -08:00
Jie Tang
974cbf4844 Allow multiple resets in a row 2016-11-02 12:56:38 -07:00
Jie Tang
a62bba3bff Only save stats on completed episodes 2016-10-31 23:56:37 -07:00
Jie Tang
533d21a63a Disallow reset()s unless we've reached a done state while monitor is running 2016-10-31 23:56:37 -07:00
Greg Brockman
9940212f5d Fix test return type 2016-10-23 13:39:22 -07:00
Greg Brockman
59b58602d4 Fix determinism test 2016-10-23 13:09:44 -07:00
Greg Brockman
a3e75eaf43 Allow for autoreset envs 2016-10-23 10:56:30 -07:00
Greg Brockman
8a9bcdf061 Don't write stats file unless requested either 2016-08-17 11:59:29 -07:00
Greg Brockman
922fc56d2f Improve performance for short episodes by only writing upon reset when requested 2016-08-17 11:26:55 -07:00
Greg Brockman
ba71635ccd Fix registration for new envs 2016-08-06 00:40:21 -07:00
Greg Brockman
3328144465 Support disabling videos by passing video_callable=False (#140)
* Support disabling videos by passing video_callable=False

* monitor.py: Flush after closing video recorder

This ensures that the last video recorded ends up
in the manifest
2016-05-29 13:56:38 -07:00
Greg Brockman
2ae0dbc846 Discard viewer object after render with close=True
Fixes #95
2016-05-15 17:22:38 -07:00
Greg Brockman
064f7377d9 Allow environment to create a new monitor after closing 2016-05-15 16:43:53 -07:00
Greg Brockman
9984589731 Improve score_from_local implementation (#66)
* Make sure that a callable is passed to start

* Improve autoflushing for score calculation

* Write stats and manifests using proper atomic_writes
2016-05-06 18:19:16 -07:00
Greg Brockman
dbde599c17 monitor.py: Still write manifest if close errors
Before, on a headless server I was losing manifests with:

NullFunctionError: Attempt to call an undefined function glIsFramebuffer, check for bool(glIsFramebuffer) before calling (when closing Ant-v0)
2016-04-27 19:35:33 -07:00