Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update openai-gym fork #1

Open
wants to merge 714 commits into
base: master
Choose a base branch
from
Open

Update openai-gym fork #1

wants to merge 714 commits into from

Conversation

knmn2000
Copy link
Member

@knmn2000 knmn2000 commented Oct 6, 2019

No description provided.

trigaten and others added 30 commits February 17, 2022 13:44
* Update pendulum.py

* version warnings

* black

* try except

* update notices version

* Exception

* nosec

* black

* no loop, stderr

* black
* Update box2d/toy_text docs

* md format and additional fixes

* grammar
* update frozen_lake docs

* add version history to frozen lake
* Changed Ant docstring

* Changed half cheetah docstring

* Changed Hopper docstring, modified formulations for Ant, HalfCheetah

* Changed humanoid docstring

* Changed HumanoidStandup, InvertedDoublependulum, InvertedPendulum docstrings

* Updated remaining docstrings, updated names of reward terms, added notes about info
* 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
* 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
* Make `NormalizeObservation` compatible with pybullet

* Quick fix

* Update test cases

* Quick fix

* pre-commit
* Changed snippet in README.md to show off new API

* Added new line in snippet
* 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
* Removed Striker and Thrower

* Removed from init as well

* Removed assets
* Locked framerate in human-mode rendering for box2d and classic_control

* Fixed pyright errors

* Use the new metadata key for FPS, add toytext environments
* Fix RandomNumberGenerator pickling

* Add test for RNG pickling fix

* Fix Python 3.7 compatibility about tuple unpacking

See: https://bugs.python.org/issue32117

* Fix formatting issue

* Add test for space pickling
* Box Boundedness determined using get_inf instead of np.inf

* Store original array entries for determining boundedness

* Capture the boundedness before casting away the np.inf

* Removed requirement that integer spaces be bounded above and below

* np full casts away the inf, so using dtype float for boundedness evaluation

* Removed commented code

* But the type ignore hint back in

* Spacing change from black code formatter
* compatibility for loading legacy Discrete states

* super

* format
* Remove display initialization when not rendering in human mode

* Fix formatting
* 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
* gym.spaces.Tuple inherits from collections.abc.Sequence

Following the PR I did a few months back (#2446), the tuple wrapper of gym should inherits from the abstract interface of Python. It is important for type check via `isinstance` and enable using such objects transparently with libraries such as [dmtree](https://github.com/deepmind/tree). 

It will bring a way helper methods along the way but it cannot be avoided to interoperability: : `__iter__`, `__reversed__`, `index`, and `count`
Personally I don't think it is an issue since it is new features and it is not conflicting.

As the previous PR, this patch is NOT removing any existing feature and should not break backward compatibility.

* Add unit test

* Fix unit tests

* Final fix.

* Remove irrelevant comment.

* Fix black formatter.
* 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
* Make `VideoRecorder` backward-compatible to `gym<0.23`

* Format

* format
* Fix issues with pygame event handling

* Fix display initialization and exit for jupyter
…d hints (#3041)

* Initial commit

* Add missing __init__ for EnvSpec

* third time a charm

* Replace entry_point=None with entry_point="no-entry-point"

* Readd make overloads, updated with all gym envs

* pre-commit

* Add apply_step_compatibility to make and add testing

* Code review by Arjun
* cliffwalking: remove annoying warning

* fix pre-commit
* initial commit

* Fix the multi-binary sample and upgrade multi-discrete sample

* Fix MultiBinary sample tests and pre-commit

* Adds coverage tests and updates test_utils.py to use the utils.py spaces. Fix bug in text.py

* pre-commit
* Update composite space and tests

* Pre-commit

* pyright

* Fix pyright

* retrigger actions

* Code review by Arjun

* Code review by Arjun

* Code review by Omar
The `warnings.simplefilter(...)` call mistakenly voids and nullifies
all the previous warning filters for DeprecationWarning, registered by
other packages or user programs via `warnings.filterwarnings` call
which has an explicit intention of suppress DeprecationWarning.

Control of DeprecationWarning's made in the gym library should have
effects only within the gym package.
* Improved documentation to specify decode state space

* Improve taxi documentation

* Fixed LunarLanderv2 reward doc
* restore auto human rendering

* add assert for minimal modes
* Added a new compatibility wrapper along with tests

* Fix for 3.6 typing

* Fix for 3.6 typing again

* Add make integration

* Unrelated change that for some reason is necessary to fix pyright

* Ignore weird (and very non-critical) type check bug

* Adjust old tests

* Rename the compatibility argument in make

* Rename the compatibility argument in register and envspec

* Documentation updates

* Remove test envs from the registry

* Some rogue renames

* Add nicer str and repr to the compatibility layer

* Reorder the compatibility layer application

* Add metadata to test envs

* Add proper handling of automatic human rendering

* Add auto human rendering to reset

* Enable setting render_mode in gym.make

* Documentation update

* Fix an unrelated stochastic test
Only import `mujoco_rendering` when `mujoco` installed.
Otherwise the `try import` code in `gym.envs.mujoco.mujoco_env` is useless.
Additionally, the running application can be stopped not just by
closing the window, but also by pressing the Escape key.

Fixed #3082.
* Fix reset info

* Added test for checking vector info
* add render warn for None

* restore _render (car racing)

* improve warn message

* reformat
* Bump version to v26.2

* Fix pre-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet