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

Make sumo dependencies optional #2059

Merged
merged 7 commits into from
Jun 12, 2023
Merged

Make sumo dependencies optional #2059

merged 7 commits into from
Jun 12, 2023

Conversation

saulfield
Copy link
Contributor

Progress towards #1981.

Comment on lines +50 to +56
try:
import sumo.tools.sumolib as sumolib
import sumo.tools.traci as traci
except ModuleNotFoundError as e:
raise ImportError(
"Missing dependencies for SUMO. Install them using the command `pip install -e .[sumo]` at the source directory."
) from e
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can note that all versions of the "hiway" environment import SumoTrafficSimulation as well as traffic_histories_to_observations.py.

Please update those appropriately.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUMO is now optional for these environments, though they still have optional params that are SUMO-specific that I did not touch.

@saulfield saulfield requested a review from Gamenot June 12, 2023 14:31
@saulfield saulfield merged commit 349132b into master Jun 12, 2023
@saulfield saulfield deleted the saul/extract-sumo branch June 12, 2023 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants