File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/scenic/simulators/metadrive Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ dependencies = [
33
33
" mapbox_earcut >= 0.12.10" ,
34
34
" matplotlib ~= 3.2" ,
35
35
" manifold3d == 2.3.0" ,
36
- " metadrive-simulator >= 0.4.3" ,
37
36
" networkx >= 2.6" ,
38
37
" numpy ~= 1.24" ,
39
38
" opencv-python ~= 4.5" ,
@@ -48,7 +47,6 @@ dependencies = [
48
47
" scikit-image ~= 0.21" ,
49
48
" scipy ~= 1.7" ,
50
49
" shapely ~= 2.0" ,
51
- " sumolib >= 1.21.0" ,
52
50
" trimesh >=4.0.9, <5" ,
53
51
]
54
52
@@ -57,6 +55,10 @@ guideways = [
57
55
' pyproj ~= 3.0; python_version < "3.10"' ,
58
56
' pyproj ~= 3.3; python_version >= "3.10"' ,
59
57
]
58
+ metadrive = [
59
+ " metadrive-simulator >= 0.4.3" ,
60
+ " sumolib >= 1.21.0" ,
61
+ ]
60
62
test = [ # minimum dependencies for running tests (used for tox virtualenvs)
61
63
" pytest >= 7.0.0, <8" ,
62
64
" pytest-cov >= 3.0.0" ,
@@ -65,6 +67,7 @@ test = [ # minimum dependencies for running tests (used for tox virtualenvs)
65
67
test-full = [ # like 'test' but adds dependencies for optional features
66
68
" scenic[test]" , # all dependencies from 'test' extra above
67
69
" scenic[guideways]" , # for running guideways modules
70
+ ' scenic[metadrive]; python_version <= "3.11"' , # MetaDrive only supports Python ≤ 3.11; excluded for newer versions
68
71
" astor >= 0.8.1" ,
69
72
' carla >= 0.9.12; python_version <= "3.10" and (platform_system == "Linux" or platform_system == "Windows")' ,
70
73
" dill" ,
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Global Parameters:
25
25
"""
26
26
import pathlib
27
27
from scenic.domains.driving.model import *
28
+ from scenic.core.errors import InvalidScenarioError
28
29
29
30
from scenic.simulators.metadrive.simulator import MetaDriveSimulator
30
31
from scenic.simulators.metadrive.actions import *
You can’t perform that action at this time.
0 commit comments