popgym.wrappers.discrete_action =============================== .. py:module:: popgym.wrappers.discrete_action Attributes ---------- .. autoapisummary:: popgym.wrappers.discrete_action.PREV_ACTION Classes ------- .. autoapisummary:: popgym.wrappers.discrete_action.DiscreteAction Module Contents --------------- .. py:data:: PREV_ACTION :value: 'prev_action' .. py:class:: DiscreteAction(env: popgym.core.env.POPGymEnv) Bases: :py:obj:`popgym.core.wrapper.POPGymWrapper` Wrapper that converts a MultiDiscrete into a single Discrete action. Args: env: The environment Returns: A gym environment .. py:attribute:: action_space :type: gymnasium.spaces.Space Return the :attr:`Env` :attr:`action_space` unless overwritten then the wrapper :attr:`action_space` is used. .. 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.