MCPcopy Create free account
hub / github.com/YeWR/EfficientZero / step

Method step

config/atari/env_wrapper.py:27–34  ·  view source on GitHub ↗
(self, action)

Source from the content-addressed store, hash-verified

25 return self.env.get_max_episode_steps()
26
27 def step(self, action):
28 observation, reward, done, info = self.env.step(action)
29 observation = observation.astype(np.uint8)
30
31 if self.cvt_string:
32 observation = arr_to_str(observation)
33
34 return observation, reward, done, info
35
36 def reset(self, **kwargs):
37 observation = self.env.reset(**kwargs)

Callers

nothing calls this directly

Calls 1

arr_to_strFunction · 0.90

Tested by

no test coverage detected