pantheonrl.common.observation.extract_obs

extract_obs(observation)[source]

Extract only the (partial) observation as a numpy array. Used for SB3 agents.

Parameters:

observation (Observation) – the full observation

Returns:

only the (partial) observation

Return type:

ndarray