Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
typo.
  • Loading branch information
gianlucadecola committed Apr 16, 2022
commit b0081c2a05a0d12413d5ce0bfbb030567bd9821f
4 changes: 2 additions & 2 deletions gym/utils/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _get_relevant_keys(
return relevant_keys

def _get_video_size(self, zoom: Optional[float] = None) -> Tuple[int, int]:
# TODO: this needs to be updated when the render API API change goes through
# TODO: this needs to be updated when the render API change goes through
rendered = self.env.render(mode="rgb_array")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put like a TODO here so that we remember to update this when the render API change goes through?

video_size = [rendered.shape[1], rendered.shape[0]]

Expand Down Expand Up @@ -175,7 +175,7 @@ def callback(obs_t, obs_tp1, action, rew, done, info):
if callback is not None:
callback(prev_obs, obs, action, rew, done, info)
if obs is not None:
# TODO: this needs to be updated when the render API API change goes through
# TODO: this needs to be updated when the render API change goes through
rendered = env.render(mode="rgb_array")
display_arr(
game.screen, rendered, transpose=transpose, video_size=game.video_size
Expand Down