* Improve auto close implementation
- Register all envs at initialization time, not just ones created via make
- Simplify names and add more documentation on interface
- Move closer instances into the relevant modules
review-requested: @jietang
* Close environments in the tests
This isn't strictly needed, but means there are fewer Doom
subprocesses hanging around while the tests run.
* Use 4 space indent in comment
* Improve docstrings in core
* Don't pass through args to __new__
The __init__ method gets called once __new__ returns,
so these arguments are either ignored (Python 2) or
result in an error (Python 3). The __init__ method
automatically gets called with the correct arguments.
* Fixup comments
Thanks @JKCooper2.
We also change to getting the PID at monitor construction time, rather
than at runtime. This means you need to start your environments
post-fork, which should be fine.
* Set restriction on selected actions
* Used self.action_space instead of custom set
* Move action validation to core.py
* Added env.score() function to return current score
* Set up multi monitor scoring
* Removed unneccesary package inclusions
* Monitor writes scores automatically. Video callable can now use monitor_id
* Monitor ID not necessary for video filtering
* Fix so final stats get written when env.reset() doesn't happen
* gitignore PyCharm Project Files
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)