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

Add VectorizeMode for make_vec #765

Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
97ac1eb
Remove deprecated features (#609)
pseudo-rnd-thoughts Jul 15, 2023
d4aa544
Merge experimental functional api into root (#610)
pseudo-rnd-thoughts Jul 16, 2023
68a6a25
Merge experimental vector into root (#613)
pseudo-rnd-thoughts Jul 17, 2023
e49cdc8
Merge experimental wrappers to root (#614)
pseudo-rnd-thoughts Jul 18, 2023
0d78c98
[WIP] Merge stateful observation tests to main tests suite (#623)
jjshoots Jul 22, 2023
d932fe9
Update vector docs (#624)
pseudo-rnd-thoughts Jul 24, 2023
b754b5d
Update all of the docs to v1.0.0 (#637)
pseudo-rnd-thoughts Jul 31, 2023
93f6448
ENH: Add NormalizeReward & NormalizeObservation vector wrappers (#632)
younik Aug 2, 2023
f159ab4
Remove `VectorWrapper.__getattr__` (#645)
pseudo-rnd-thoughts Aug 3, 2023
04a8548
Update docs 2 (#649)
pseudo-rnd-thoughts Aug 4, 2023
700ffd0
Automatically generate the list of wrappers using their first line in…
pseudo-rnd-thoughts Aug 5, 2023
a220735
Merge experimental wrappers tests into wrappers tests (#656)
pseudo-rnd-thoughts Aug 7, 2023
02b7d6d
Improve the normalize vector wrapper tests (#659)
pseudo-rnd-thoughts Aug 10, 2023
e98bbad
Reduce the number of CI warnings (#663)
pseudo-rnd-thoughts Aug 10, 2023
937177d
Update version to v1.0.0a1
pseudo-rnd-thoughts Aug 10, 2023
f686481
Add more examples to docs for wrappers (#657)
jjshoots Aug 21, 2023
24cc085
Rename `AsyncVectorEnv` or `SyncVectorEnv` attributes (#678)
pseudo-rnd-thoughts Aug 21, 2023
e3ec4b8
Remove wrapper version numbers (#665)
pseudo-rnd-thoughts Aug 21, 2023
0bc7f1e
Support `gym.make_vec(envs.spec)` (#679)
pseudo-rnd-thoughts Aug 21, 2023
dcd9ab9
Add `VectorEnv.render` function (#666)
pseudo-rnd-thoughts Aug 21, 2023
36a446b
Remove old testing code (#680)
pseudo-rnd-thoughts Aug 22, 2023
ff1128f
Add `Wrapper.set_wrapper_attr` and fix issue 357 (#681)
pseudo-rnd-thoughts Aug 22, 2023
d2efa7c
Change to release candidate from alpha
pseudo-rnd-thoughts Aug 22, 2023
76e8871
Improve the documentation (#688)
pseudo-rnd-thoughts Aug 26, 2023
c48cbd7
Fixed `VectorizeTransformAction` and `VectorizeTransformObservation` …
jjshoots Aug 26, 2023
65c62eb
Remove `Autoreset.spec`, add type hints to `TimeLimit`, correct type …
pseudo-rnd-thoughts Aug 28, 2023
80ef108
Add change logs to wrapper documentation (#696)
pseudo-rnd-thoughts Aug 29, 2023
f7f0363
Add dtype check to `Box.__eq__` and `MultiDiscrete.__eq__` (#707)
pseudo-rnd-thoughts Sep 5, 2023
0313eac
add examples for vector wrappers (#673)
jjshoots Sep 5, 2023
2af443f
Add `make(max_episode_steps=0)` to not apply a `TimeLimit` wrapper (#…
pseudo-rnd-thoughts Sep 8, 2023
ce01fd9
Update `make_vec(vectorization_mode)` to default to `None` and use `v…
pseudo-rnd-thoughts Sep 8, 2023
adcc405
Update `make_vec` to use `make` for `async` and `sync` (#711)
pseudo-rnd-thoughts Sep 8, 2023
16f3a4e
Option to save frames to disk in video recorder (#715)
rk1a Sep 20, 2023
6d492ea
Fix CI problems of #715 (#719)
rk1a Sep 20, 2023
00a62a0
Add VectorizeMode for `make_vec`
pseudo-rnd-thoughts Nov 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add dtype check to Box.__eq__ and MultiDiscrete.__eq__ (#707)
  • Loading branch information
pseudo-rnd-thoughts authored Sep 5, 2023
commit f7f0363cb0a7d3ed2ecfa379ba7e3e70c348dc7e
2 changes: 1 addition & 1 deletion gymnasium/spaces/box.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def __eq__(self, other: Any) -> bool:
return (
isinstance(other, Box)
and (self.shape == other.shape)
# and (self.dtype == other.dtype)
and (self.dtype == other.dtype)
and np.allclose(self.low, other.low)
and np.allclose(self.high, other.high)
)
Expand Down
1 change: 1 addition & 0 deletions gymnasium/spaces/multi_discrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def __eq__(self, other: Any) -> bool:
"""Check whether ``other`` is equivalent to this instance."""
return bool(
isinstance(other, MultiDiscrete)
and self.dtype == other.dtype
and np.all(self.nvec == other.nvec)
and np.all(self.start == other.start)
)
Expand Down