popgym.wrappers.antialias ========================= .. py:module:: popgym.wrappers.antialias Attributes ---------- .. autoapisummary:: popgym.wrappers.antialias.IS_T0 Classes ------- .. autoapisummary:: popgym.wrappers.antialias.Antialias Module Contents --------------- .. py:data:: IS_T0 :value: 'is_t0' .. py:class:: Antialias(env: popgym.core.env.POPGymEnv) Bases: :py:obj:`popgym.core.wrapper.POPGymWrapper` Wrapper that undoes aliasing produces by the PreviousAction wrapper Outputs a boolean flag denoting whether the observation was taken at the first timestep. Args: env: The environment Returns: A gym environment with a Discrete(2) appended to the observation space .. py:attribute:: observation_space Return the :attr:`Env` :attr:`observation_space` unless overwritten then the wrapper :attr:`observation_space` is used. .. py:method:: antialias_obs_space(observation_space: gymnasium.spaces.Space) -> gymnasium.spaces.Space :staticmethod: .. py:method:: antialias_obs(observation_space: gymnasium.spaces.Space, obs: gymnasium.core.ObsType, is_t0: bool) -> gymnasium.core.ObsType :staticmethod: .. py:method:: step(action: gymnasium.core.ActType) -> Tuple[gymnasium.core.ObsType, float, bool, bool, dict] Uses the :meth:`step` of the :attr:`env` that can be overwritten to change the returned data. .. py:method:: reset(**kwargs) Uses the :meth:`reset` of the :attr:`env` that can be overwritten to change the returned data.