-
Notifications
You must be signed in to change notification settings - Fork 192
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
Conversation
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Progress towards #1981.