mirror of
https://github.com/Ahp06/SUMO_Emissions.git
synced 2024-11-22 03:26:30 +00:00
24 lines
519 B
Python
24 lines
519 B
Python
"""
|
|
Global configuration for the simulation
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
|
|
if 'SUMO_HOME' in os.environ:
|
|
tools = os.path.join(os.environ['SUMO_HOME'], 'tools')
|
|
sys.path.append(tools)
|
|
else:
|
|
sys.exit("please declare environment variable 'SUMO_HOME'")
|
|
|
|
_SUMOCMD = 'sumo' # use 'sumo-gui' cmd for UI
|
|
_SUMOCFG = "mulhouse_simulation/osm.sumocfg"
|
|
CELLS_NUMBER = 10
|
|
CO2_THRESHOLD = 500000
|
|
n_steps = 200
|
|
|
|
sumo_binary = os.path.join(os.environ['SUMO_HOME'], 'bin', _SUMOCMD)
|
|
sumo_cmd = [sumo_binary, "-c", _SUMOCFG]
|
|
|
|
|