-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Improve error messages for missing or non-car initial object
-Add skip for MetaDrive tests -Update test_pedestrian_movement to have specific coordinates for Car and Pedestrian
- Loading branch information
Showing
4 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
metadrive = None | ||
try: | ||
import metadrive | ||
except ImportError: | ||
raise ImportError("Metadrive is required. Please install the 'metadrive' package.") | ||
if metadrive: | ||
from .simulator import MetaDriveSimulator | ||
del metadrive | ||
raise ImportError( | ||
"Metadrive is required. Please install the 'metadrive' package (and sumolib) or use scenic[metadrive]." | ||
) | ||
|
||
from .simulator import MetaDriveSimulator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters