* Batch the action space in VectorEnv and add iterate utility function
* Add tests for iterate
* Add tests for action spaces in SyncVectorEnv and AsyncVectorEnv
* Black formatting
* Use singledispatch for iterate utility function
* Update the ordering of the arguments in the docstring
* Fix ordering in docstring example of iterate
* Check for same action spaces in vectorized environments
* Separate Discrete from other space types in iterate singledispatch
* Ditch most of the seeding.py and replace np_random with the numpy default_rng. Let's see if tests pass
* Updated a bunch of RNG calls from the RandomState API to Generator API
* black; didn't expect that, did ya?
* Undo a typo
* blaaack
* More typo fixes
* Fixed setting/getting state in multidiscrete spaces
* Fix typo, fix a test to work with the new sampling
* Correctly (?) pass the randomly generated seed if np_random is called with None as seed
* Convert the Discrete sample to a python int (as opposed to np.int64)
* Remove some redundant imports
* First version of the compatibility layer for old-style RNG. Mainly to trigger tests.
* Removed redundant f-strings
* Style fixes, removing unused imports
* Try to make tests pass by removing atari from the dockerfile
* Try to make tests pass by removing atari from the setup
* Try to make tests pass by removing atari from the setup
* Try to make tests pass by removing atari from the setup
* First attempt at deprecating `env.seed` and supporting `env.reset(seed=seed)` instead. Tests should hopefully pass but throw up a million warnings.
* black; didn't expect that, didya?
* Rename the reset parameter in VecEnvs back to `seed`
* Updated tests to use the new seeding method
* Removed a bunch of old `seed` calls.
Fixed a bug in AsyncVectorEnv
* Stop Discrete envs from doing part of the setup (and using the randomness) in init (as opposed to reset)
* Add explicit seed to wrappers reset
* Remove an accidental return
* Re-add some legacy functions with a warning.
* Use deprecation instead of regular warnings for the newly deprecated methods/functions
This introduces a new tree-like storage structures for environments
which allows for efficient lookups of what versions of an environment
are registered. Using this new data-structure we can give warnings
to users about outdated environments when `make` is called.
* Adds type checks via `pyright` to CI
* Move developer instructions into CONTRIBUTING.md
* black formatting
* Explicit list of strictly checked files
Co-authored-by: Ilya Kamen <ilya.kamenshchikov@bosch.com>
* Update pendulum.py
I have added the description of the class as much as I could, it needs to be completed.
* Update pendulum.py
* Update pendulum.py
* Update pendulum.py
* Update pendulum.py
* Update pendulum.py
I think the observation space is Box(1) as per the __init__ func.
* Remove a redundant (?) helpers file, moved the video wrapper test to other wrapper tests
* Deleted an ancient hash-random-rollout feature that hasn't been maintained in years and (hopefully) hasn't been used in years. Also deleted a test that was disabled anyways.
* gym.spaces.Dict inherits from collections.abc.Mapping
It would be very convenient to have `gym.spaces.Dict` inheriting from `collections.abc.Mapping` so that it can be used in conjunction with [dmtree](https://github.com/deepmind/tree) to perform operations on complex spaces conveniently. It also simplifies the implementation which is good.
I just don't like the fact that the `contains` method behavior is not consistent with what it should be doing if it was a proper mapping...
* Update dict.py
* Update dict.py
This commit adds the [flappy-bird-gym](https://github.com/Talendar/flappy-bird-gym) package to `third_party_environments.md`. It's the first result on Google when searching for "flappy bird gym environment".
* Move tests to root with automatic PyCharm import refactoring. This will likely fail some tests
* Changed entry point for a registration test env.
* Move a stray lunar_lander test to tests/envs/...
* black
* Change the version from which importlib_metadata is replaced with importlib.metadata. Also requiring installing importlib_metadata for python 3.8 now.
???????????
* Undo last commit
* Moved all (?) tests to gym/tests
* flake8
* Move all the tests into gym/gym/tests, this might fix all the import errors... hopefully
* Move unittests back to envs
* Fix unittest again
* black
* Fix to one test due to new paths
* Pendulum env updates
Simplify the math a bit (no difference in behavior)
* Reorder the clipping of angular velocity
* Bump version of Pendulum
* black
* Update mentions of Pendulum-v0 to Pendulum-v1.