Skip to content

Commit

Permalink
Merge pull request #240 from MyoHub/dev
Browse files Browse the repository at this point in the history
2.8.0 release
  • Loading branch information
Vittorio-Caggiano authored Sep 23, 2024
2 parents 7052ffa + d0a667b commit 8d2ae0b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/source/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,20 @@ Load DEP-RL Baseline
+++++++++++++++++++++++++++++++++++++
See `here <https://deprl.readthedocs.io/en/latest/index.html>`__ for more detailed documentation of ``deprl``.

.. note::
Deprl requires Python `3.9` or newer.

If you want to load and execute the pre-trained DEP-RL baseline. Make sure that the ``deprl`` package is installed.

.. code-block:: python
from myosuite.utils import gym
import deprl
from deprl import env_wrappers
# we can pass arguments to the environments here
env = gym.make('myoLegWalk-v0', reset_type='random')
env = env_wrappers.GymWrapper(env)
policy = deprl.load_baseline(env)
obs = env.reset()
for i in range(1000):
Expand Down
4 changes: 3 additions & 1 deletion docs/source/tutorials/4a_deprl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
],
"source": [
"from myosuite.utils import gym\n",
"import deprl"
"import deprl\n",
"from deprl import env_wrappers"
]
},
{
Expand All @@ -45,6 +46,7 @@
"source": [
"T = 1000 # length of episode\n",
"env = gym.make('myoLegWalk-v0')\n",
"env = env_wrappers.GymWrapper(env)\n",
"obs = env.reset()"
]
},
Expand Down
2 changes: 1 addition & 1 deletion myosuite/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version_tuple__ = (2, 7, 0)
__version_tuple__ = (2, 8, 0)

0 comments on commit 8d2ae0b

Please sign in to comment.