Closed BolunDai0216 closed 1 year ago
Looks good, could you add a test that for each environment, you try to pickle and unpickle the object. This is an example from Gymnasium. https://github.com/Farama-Foundation/Gymnasium/blob/33e32178ffdf040a095bd2c856f6410bc7ec1306/tests/envs/test_envs.py#L197
An interesting addition, in comparison to the gymnasium is to pass a keyword to check that works
I added the test and passed a keyword using gym.make(env_id, max_episode_steps=100).unwrapped
, is that what you had in mind?
Description
All of the environments now also inherit from
gymnasium.utils.EzPickle
. Included a test for pickling.Type of change
New feature (non-breaking change which adds functionality)
Checklist:
pre-commit
checks withpre-commit run --all-files
(seeCONTRIBUTING.md
instructions to set it up)