Commit Graph

10 Commits

Author SHA1 Message Date
Ariel Kwiatkowski
c364506710 Seeding update (#2422)
* 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
2021-12-08 16:14:15 -05:00
Minghuan Liu
01b4519d9d Fix action dimension check bugs (#2469)
* fix action dimension check bugs

* black codes, add test function

* clear codes for simplicity

* update check mujoco install
2021-11-17 18:11:40 -05:00
Elijah K
eec6167440 Py36+ syntax in gym/envs: derived by running pyupgrade --py36-plus gym/envs/**.py and flynt gym --ll 120 (#2465)
Co-authored-by: Ilya Kamen <ilya.kamenshchikov@bosch.com>
2021-11-13 19:53:32 -05:00
J K Terry
78d2b512d8 redo black (#2272) 2021-07-29 15:39:42 -04:00
Justin Terry
e9d2c41f2b redo black 2021-07-29 12:42:48 -04:00
Christian Clauss
bb81e141ea Blacken the codebase (#2265) 2021-07-28 20:26:34 -04:00
pzhokhov
5861d95ecd fix #1425 (#1459)
* fixes #1266

* test for correct observation space keys in GoalEnv

* fix import leading to test failures

* fix test failures
2019-05-10 15:00:01 -07:00
Matthew Rahtz
e0f916a7d5 Fix RobotEnv rgb_array rendering (#1182)
* Fix RobotEnv rgb_array rendering

* Set viewer dimensions explicitly for FetchEnv and HandEnv
2019-02-15 15:55:51 -08:00
pzhokhov
74229c8dc2 travis build and test failure fixes (#1031)
* build test image from scratch from ubuntu:16.04

* removed pulling old image from .travis.yml

* try installing keyboard-configuration on docker on travis

* trying install keyboard-configuration before rest of the packages

* upgrading dockerfile and entrypoint to work with ubuntu16.04

* fixing dummy display config wip

* install keyboard-properties first in dockerfile

* pass mujoco_key in .travis.yml

* skipsdist in tox.ini

* removed unpacking of the mujoco bundle in entrypoint

* using xvfb for fake display

* comment out self.viewer.close

* install ffmpeg

* squash run commands in dockerfile

* fixed typo in dockerfile

* fixed typo in dockerfile

* fixed typo in dockerfile

* use self.np_random in robotics/hand/manipulate

* some cleanups in .travis.yml

* cleaning up accidental changes

* cleaning up accidental changes

* inject mujoco key on runtime (instead of container buildtime)

* remove webhooks section from .travis.yml
2018-05-14 17:39:56 -07:00
Matthias Plappert
78c416ef7b New robotics environments (#912) 2018-02-26 17:35:07 +01:00