Skip to content

Commit

Permalink
Speed up rllib test (#1767)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot authored Dec 6, 2022
1 parent f90705a commit 9904e94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion smarts/env/tests/test_rllib_hiway_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from smarts.core.utils.file import make_dir_in_smarts_log_dir
from smarts.env.rllib_hiway_env import RLlibHiWayEnv
from smarts.zoo.agent_spec import AgentSpec
from smarts import sstudio

AGENT_ID = "Agent-007"
INFO_EXTRA_KEY = "__test_extra__"
Expand Down Expand Up @@ -124,7 +125,9 @@ def on_episode_end(info):
}

# XXX: We should be able to simply provide "scenarios/sumo/loop"?
scenario_path = Path(__file__).parent / "../../../scenarios/sumo/loop"
import smarts
scenario_path = Path(smarts.__file__).parent.absolute()/"scenarios/intersection/1_to_1lane_left_turn_c"

tune_confg = {
"env": RLlibHiWayEnv,
"env_config": {
Expand Down

0 comments on commit 9904e94

Please sign in to comment.