Commit Graph

19 Commits

Author SHA1 Message Date
Martin Schuck
5dde9a79be Add generic conversion wrapper between Array API compatible frameworks (#1333) 2025-05-11 23:10:06 +01:00
Mark Towers
8a46c3ab39 Add support for different vector autoreset modes (#1227) 2024-11-28 12:18:55 +00:00
Quentin Gallouédec
57136fbaee Check the determinism of env.reset(seed=42); env.reset() (#1086)
Co-authored-by: Quentin Gallouédec <quentin.gallouedec@huggingface.co>
2024-07-02 10:50:56 +01:00
Mark Towers
52b6878618 Pre commit autoupdate (#1082) 2024-06-10 17:07:47 +01:00
Mark Towers
a40234f5ef Adds testing to check_env that closing a closed environment doesn't raise an error (#564)
Co-authored-by: Quentin GALLOUÉDEC <gallouedec.quentin@gmail.com>
Co-authored-by: Quentin Gallouédec <45557362+qgallouedec@users.noreply.github.com>
2023-06-21 17:39:50 +01:00
Valentin
c5fd30e59e Reduce numbers of warnings in CI (#375) 2023-03-13 11:10:28 +00:00
Ian Fan
b34c25b368 Fix type annotations of callable to Callable (#259) 2023-01-11 20:09:37 +00:00
Mark Towers
1dfdf45480 Revert "ENH: allow metadata["render_modes"] to be a set" (#251) 2023-01-09 13:12:07 +00:00
Omar Younis
3413b04534 ENH: allow metadata["render_modes"] to be a set (#248) 2023-01-08 19:56:52 +00:00
Mark Towers
f208f874a0 Add wrappers to experimental (#201) 2022-12-10 22:04:14 +00:00
Mark Towers
848b7097bf Update experimental wrappers (#176) 2022-12-05 19:14:56 +00:00
Markus Krimmel
0845584048 Added testing for render return (#117) 2022-11-10 12:51:51 +00:00
Mark Towers
8589523a77 Change import gymnasium to import gymnasium as gym (#20) 2022-09-16 23:41:27 +01:00
pseudo-rnd-thoughts
640c509109 Rename to gymnasium 2022-09-08 10:10:07 +01:00
Mark Towers
0bcd49ec10 Updates the make and registration functions with better parameters and 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
2022-09-01 11:02:31 -04:00
Mark Towers
799c8d20c1 Rename "rgb_array" to "rgb_array_list" and "single_rgb_array" to "rgb_array" (#3040)
* initial commit

* Fix CI

* Fixed CI

* third time the charm

* Fix mujoco environment render modes order

* Remove unnecessary changes

* pre-commit

* Fix tests

* Comment out test render modes

* Fix code review and readd mujoco

* pre-commit

* Fix testing envs

* Fix all GenericTestEnvs

* Do not run mujoco-py render environments
2022-09-01 09:06:42 -04:00
John Balis
3a8daafce1 Removing return_info argument to env.reset() and deprecated env.seed() function (reset now always returns info) (#2962)
* removed return_info, made info dict mandatory in reset

* tenatively removed deprecated seed api for environments

* added more info type checks to wrapper tests

* formatting/style compliance

* addressed some comments

* polish to address review

* fixed tests after merge, and added a test of the return_info deprecation assertion if found in reset signature

* some organization of env_checker tests, reverted a probably merge error

* added deprecation check for seed function in env

* updated docstring

* removed debug prints, tweaked test_check_seed_deprecation

* changed return_info deprecation check from assertion to warning

* fixes to vector envs, now  should be correctly structured

* added some explanation and typehints for mockup depcreated return info reset function

* re-removed seed function from vector envs

* added explanation to _reset_return_info_type and changed the return statement
2022-08-23 11:09:54 -04:00
Mark Towers
3c60ae97d1 Remove pytest.importorskip (#2976) 2022-07-23 10:38:52 -04:00
Mark Towers
015b31fa76 Bug fix, add tests for environment checker and passive environment checker wrapper (#2903) 2022-07-10 21:45:24 -04:00