Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up rllib test #1767

Merged
merged 1 commit into from
Dec 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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