* First version of the new registration
* Almost done
* Hopefully final commit
* Minor fixes
* Missing error
* Type fixes
* Type fixes
* Add some type hinting stuff
* Fix an error?
* Fix literal import
* Add a comment
* Add some docstrings
Remove old tests
* Add some docstrings, rename helper functions
* Rename a function
* Registration check fix
* Consistently use `register` instead of `envs.register` in tests
* Fix the malformed registration error message to not use a write-only format
* Change an error back to a warning when double-registering an environment
* refactoring play function. Tests for keys to action mapping.
* Add mocking pygame events.
* partial event processing in class.
* pre-commit.
* quit pygame after tests.
* fix typos in functions names.
* Add type hint.
* Add test for play function.
* remove mockKeyEvent.
* remove unused main code.
* Adding type hints.
* catch custom exception in tests.
* Fix magic numbers.
* Add test with an actual environment.
* fix comment.
* Add TODO memo on env.render.
* change map with list comprehension.
* remove unused imports.
* Add type hint.
* typo.
* docstring.
* fix impulse sample bug and add adjustable gravity
* revert weird sample thing
* assertation
* add wind
* fix wind to use applyforce
* black
* add tests for wind
* fix test bug
* run lunar lander tests over 10 runs
* reduce wind for heuristic landing
* made wind power kwarg
* reduce wind power for heuristic landing
* update doc
* remove wind power from kwarg
* fix tests by deleting tests ;)
* Add back wind power as kwarg
* the black sheep
* remove rogue plus
* slight doc fix and variable rename
* fix bug with track turn indicators
* black
* first commit domain randomize
* black
* update doc
* add some type hints and internalized some functions
* we were told, the black bear is innocent; but I should not like to trust
myself wit him
* Don't need two color conventions
* don't multiply twice
* hardcore -> domain_randomize & register
* remove rogue decorator
* fix impulse sample bug and add adjustable gravity
* revert weird sample thing
* assertation
* add wind
* fix wind to use applyforce
* black
* add tests for wind
* fix test bug
* run lunar lander tests over 10 runs
* reduce wind for heuristic landing
* made wind power kwarg
* reduce wind power for heuristic landing
* update doc
* remove wind power from kwarg
* fix tests by deleting tests ;)
* Add back wind power as kwarg
* the black sheep
* remove rogue plus
* Moved pygame imports into render
* Formatting
* Make pygame optional for box2d, try to make formatting work
* fix tests, fix pre-commit.
* Update ci linter config.
* fix type hints for latest pyright version and backward compatibility with numpy <= 1.21.5
* pre-commit.
Co-authored-by: Ariel Kwiatkowski <ariel.j.kwiatkowski@gmail.com>
Co-authored-by: Gianluca De Cola <gianluca.decola@ags-it.com>
* Moved pygame imports into render
* Formatting
* Make pygame optional for box2d, try to make formatting work
* fix tests, fix pre-commit.
Co-authored-by: Ariel Kwiatkowski <ariel.j.kwiatkowski@gmail.com>
Co-authored-by: Gianluca De Cola <gianluca.decola@ags-it.com>
* Fixed warnings produced by test_record_video.py and test_video_recorder.py by using the self._frames_per_sec value as default value if video.frames_per_second is missing
* The default backward compatible values if video.frames_per_second and video.output_frames_per_seconds are the updated frames_per_sec and output_frames_per_sec values
* Added check for return_info, only warn about missing render_fps if human mode is available
* Require render_fps if any kind of rendering is implemented
* Fixed bug for issue 2702 where blackjack and frozen lake won't close the render on jupyter notebook
* As screen is initialised outside __init__, close needs to check if screen exists as an attribute before quitting pygame
* Update pendulum.py
* version warnings
* black
* try except
* update notices version
* Exception
* nosec
* black
* no loop, stderr
* black
* convert ## to ###
* correct subheader
* black
* despace
* spacing
* frozen lake fixes
* rename render modes/fps
* fix API test
* fix API test
* fix more API tests
* black
* add render fps
* render_fps API test
* black
* Update env_checker.py
* black
* Updated cartpole-v0 to v1 to prevent warning and added pytest.mark.filterwarnings for tests where warnings are unavoidable
* Change np.bool to bool as numpy raises a warning and bool is the suggested solution
* Seeding randint is deprecated in the future, integers is new solution
* Fixed errors thrown when the video recorder is deleted but not closed
* spaces.Box expects a floating array, updated all cases where this was not true and modified float32 to float64 as float array default to float64. Otherwise space.Box raises warning that dtype precision (float32) is lower than array precision (float64).
* Added pytest.mark.filterwarnings to preventing the raising of an intended warning
* Added comment to explain why a warning is raised that can't be prevented without version update to the environment
* Added comment to explain why warning is raised
* Changed values to float as expected by the box which default to float64
* Removed --forked from pytest as the pytest-forked project is no being maintained and was not raising warnings as expected
* When AsyncVectorEnv has shared_memory=True then a ValueError is raised before _state is initialised. Therefore, on the destruction on the env an error is thrown in .close_extra as _state does not exist
* Possible fix that was causing an error in test_call_async_vector_env by ensuring that pygame resources are released
* Pygame throws an error with ALSA when closed, using a fix from PettingZoo (https://github.com/Farama-Foundation/PettingZoo/blob/master/pettingzoo/__init__.py). We use the dsp audiodriver to prevent this issue
* Modification due to running pre-commit locally
* Updated cartpole-v0 to v1 to prevent warning and added pytest.mark.filterwarnings for tests where warnings are unavoidable
* Change np.bool to bool as numpy raises a warning and bool is the suggested solution
* Seeding randint is deprecated in the future, integers is new solution
* Fixed errors thrown when the video recorder is deleted but not closed
* spaces.Box expects a floating array, updated all cases where this was not true and modified float32 to float64 as float array default to float64. Otherwise space.Box raises warning that dtype precision (float32) is lower than array precision (float64).
* Added pytest.mark.filterwarnings to preventing the raising of an intended warning
* Added comment to explain why a warning is raised that can't be prevented without version update to the environment
* Added comment to explain why warning is raised
* Changed values to float as expected by the box which default to float64
* Removed --forked from pytest as the pytest-forked project is no being maintained and was not raising warnings as expected
* When AsyncVectorEnv has shared_memory=True then a ValueError is raised before _state is initialised. Therefore, on the destruction on the env an error is thrown in .close_extra as _state does not exist
* Possible fix that was causing an error in test_call_async_vector_env by ensuring that pygame resources are released
* Pygame throws an error with ALSA when closed, using a fix from PettingZoo (https://github.com/Farama-Foundation/PettingZoo/blob/master/pettingzoo/__init__.py). We use the dsp audiodriver to prevent this issue
* Modification due to running pre-commit locally
* Fix flatten utils to handle Discrete.start
* Fix vector space utils to handle Discrete.start
* More granular dispatch in vector utils
* Fix Box including the high end of the interval