ptan icon indicating copy to clipboard operation
ptan copied to clipboard

Outdated Experience Source

Open leinaxd opened this issue 2 years ago • 0 comments

Experience Source asserts when env == gym.Env However, newer gymnasium Env is (same but) diferent from gym.Env.

the solution is just to delete this assertion and include gym.Env typing

class ExperienceSource:
    def __init__(self, env:gym.Env,   agent, ...): <------------------
             """
             ···
             """
             #assert isinstance(env, (gym.Env, tuple, list)) <-------------------
             assert isinstance(agent, BaseAgent)
             ...

leinaxd avatar Feb 23 '23 20:02 leinaxd