Skip to content

Commit

Permalink
Update the jumpy error to specify the pip install is jax-jumpy (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudo-rnd-thoughts authored Jan 11, 2023
1 parent c52ef43 commit febe526
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion gymnasium/experimental/wrappers/lambda_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

from typing import Callable

import jumpy as jp

try:
import jumpy as jp
except ImportError as e:
raise ImportError("Jumpy is not installed, run `pip install jax-jumpy`") from e
import numpy as np

import gymnasium as gym
Expand Down
6 changes: 5 additions & 1 deletion gymnasium/experimental/wrappers/lambda_observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
from typing import Any, Callable, Sequence
from typing_extensions import Final

import jumpy as jp

try:
import jumpy as jp
except ImportError as e:
raise ImportError("Jumpy is not installed, run `pip install jax-jumpy`") from e
import numpy as np

import gymnasium as gym
Expand Down
6 changes: 5 additions & 1 deletion gymnasium/experimental/wrappers/stateful_observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
from typing import Any, SupportsFloat
from typing_extensions import Final

import jumpy as jp

try:
import jumpy as jp
except ImportError as e:
raise ImportError("Jumpy is not installed, run `pip install jax-jumpy`") from e
import numpy as np

import gymnasium as gym
Expand Down

0 comments on commit febe526

Please sign in to comment.