Skip to content

ToGymEnv.reset does not respect Gym.Env.reset signature #8

@epignatelli

Description

@epignatelli

- Issue

The signature in both gym.Env.reset and gymnasium.Env.reset include two optional parameters: seed and options.

Instead ToGymEnv.reset does not accept any parameter.

For example, env.reset(seed=0) will fail with a procgen environment.

- Reproduce

import gym

env = gym.make("procgen:procgen-coinrun-v0")
env.reset(seed=0)

- Proposed fix

ToGymEnv.reset should respect the Gym.Env.reset signature, even if parameters are ignored.

The proposal is in #9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions