Skip to content

Commit

Permalink
Refactor: Minor code style improvements (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
helpingstar authored Oct 28, 2024
1 parent a841ac4 commit 04bf8fb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions jumanji/environments/routing/pac_man/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ def render(self, state: Union[Observation, State]) -> Optional[NDArray]:
RGB array if the render_mode is RenderMode.RGB_ARRAY.
"""
self._clear_display()
(
fig,
ax,
) = self._get_fig_ax()
fig, ax = self._get_fig_ax()
ax.clear()
fig.suptitle(f"PacMan Score: {int(state.score)}", size=15)
self._add_grid_image(state, ax)
Expand Down Expand Up @@ -350,6 +347,5 @@ def set_ghost_colours_scared_details(

obs = [layer_1, layer_2, layer_3]
rgb = jnp.stack(obs, axis=-1)
expand_rgb

return rgb

0 comments on commit 04bf8fb

Please sign in to comment.