alpaca/alpacka/envs.py
def restore_state(self, state):
        """Restores environment state, returns the observation."""
        try:
            self._elapsed_steps = state.elapsed_steps
            state = state.super_state
        except AttributeError:
            self._elapsed_steps = 0

        return super().restore_state(state)
Restores environment state, returns the observation.
Restores environment state, returns the observation.
Restores environment state returns the observation .
def restore_state(self, state):
        try:
            self._elapsed_steps = state.elapsed_steps
            state = state.super_state
        except AttributeError:
            self._elapsed_steps = 0
        return super().restore_state(state)
def restore_state ( self , state ) : try : self . _elapsed_steps = state . elapsed_steps state = state . super_state except AttributeError : self . _elapsed_steps = 0 return super ( ) . restore_state ( state )
Restores environment state, returns the observation.
Restores environment state returns the observation .
"""Restores environment state, returns the observation."""
self
state