Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaux1 committed Feb 10, 2024
1 parent 569d65a commit 1ced7fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions examples/floating_mia_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
Floating Mia Example
=========
This is an example of how to use the FloatingMiaGraspEnv. A random policy is then
used to generate ten episodes.
This is an example of how to use the FloatingMiaGraspEnv. A random policy is
then used to generate ten episodes.
"""

Expand All @@ -18,7 +18,7 @@
episode_return = 0
num_episodes = 0

while num_episodes <= 10:
while num_episodes < 10:

action = env.action_space.sample()

Expand All @@ -30,6 +30,6 @@
num_episodes += 1
episode_return = 0

env.reset()
obs, _ = env.reset()

env.close()
3 changes: 1 addition & 2 deletions examples/floating_shadow_example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import gymnasium

from deformable_gym.envs.floating_shadow_grasp_env import \
FloatingShadowGraspEnv
from deformable_gym.envs.floating_shadow_grasp_env import FloatingShadowGraspEnv

"""
=========
Expand Down

0 comments on commit 1ced7fa

Please sign in to comment.