Skip to content

Commit

Permalink
Remove imports
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneteoh committed Jun 13, 2024
1 parent 9f14cd3 commit c70fef4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions examples/rlbench_gym.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import time
import gymnasium as gym
import rlbench.gym
from gymnasium.utils.performance import benchmark_step

env = gym.make('rlbench/reach_target-vision-v0', render_mode="rgb_array")
Expand Down
1 change: 1 addition & 0 deletions rlbench/gym/rlbench_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def reset(self, seed=None, options=None):
np.random.seed(seed=seed)
reset_to_demo = None
if options is not None:
# TODO: Write test for this
reset_to_demo = options.get("reset_to_demo", None)

if reset_to_demo is None:
Expand Down
6 changes: 0 additions & 6 deletions tests/unit/test_gym.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import numpy as np
import gymnasium as gym
import rlbench.gym
import pytest
from gymnasium.utils.passive_env_checker import check_obs
from gymnasium.utils.env_checker import check_env
import threading

import inspect
from copy import deepcopy

import numpy as np

Expand Down

0 comments on commit c70fef4

Please sign in to comment.