(self, physics, random_state=None)
A callable which returns a (potentially corrupted) observation.
A callable which returns a (potentially corrupted) observation.
A callable which returns a ( potentially corrupted ) observation .
def observation_callable(self, physics, random_state=None):
    """A callable which returns a (potentially corrupted) observation."""
    raw_callable = self._callable(physics)
    if self._corruptor:
      def _corrupted():
        return self._corruptor(raw_callable(), random_state=random_state)
      return _corrupted
    else:
      return raw_callable
def observation_callable ( self , physics , random_state = None ) : raw_callable = self . _callable ( physics ) if self . _corruptor : def _corrupted ( ) : return self . _corruptor ( raw_callable ( ) , random_state = random_state ) return _corrupted else : return raw_callable