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

GymEnv doesnt work with inheritance #407

Closed
EBoguslawski opened this issue Feb 7, 2023 · 1 comment
Closed

GymEnv doesnt work with inheritance #407

EBoguslawski opened this issue Feb 7, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@EBoguslawski
Copy link
Contributor

    def __init__(self, env_init, shuffle_chronics=True):
        check_gym_version()
        self.init_env = env_init.copy()
        self.action_space = GymActionSpace(self.init_env)
        self.observation_space = GymObservationSpace(self.init_env)
        self.reward_range = self.init_env.reward_range
        self.metadata = self.init_env.metadata
        self._shuffle_chronics = shuffle_chronics
        
        if GYM_VERSION <= _MAX_GYM_VERSION_RANDINT:
            self.seed = self._aux_seed
######### HERE
            self.reset = self._aux_reset
            self.step = self._aux_step
        else:
            self.reset = self._aux_reset_new
            self.step = self._aux_step_new
@EBoguslawski EBoguslawski added the bug Something isn't working label Feb 7, 2023
BDonnot referenced this issue in BDonnot/Grid2Op Mar 8, 2023
@BDonnot
Copy link
Collaborator

BDonnot commented Jun 6, 2023

done and available in version 1.9.0

@BDonnot BDonnot closed this as completed Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants