From 4c8dda3b600405018b563bcd72bc4812d19dc012 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Mon, 18 Sep 2023 17:43:15 +0200 Subject: [PATCH] Fix: README code imported gym instead of gymnasium --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a19bab..ca4f102 100644 --- a/README.md +++ b/README.md @@ -66,8 +66,8 @@ Regular step based environments added by Fancy Gym are added into the ```fancy/` | ------------------------------------------------------------ | ```python +import gymnasium as gym import fancy_gym -import gym env = gym.make('fancy/Reacher5d-v0') observation = env.reset(seed=1) @@ -107,9 +107,10 @@ Just keep in mind, calling `step()` executes a full trajectory. > Feel free to try it and open an issue with any problems that occur. ```python +import gymnasium as gym import fancy_gym -env = fancy_gym.make('fancy_ProMP/Reacher5d-v0') +env = gym.make('fancy_ProMP/Reacher5d-v0') # or env = fancy_gym.make('metaworld_ProDMP/reach-v2') # or env = fancy_gym.make('dm_control_DMP/ball_in_cup-catch-v0')