cityflow-project / CityFlow

A Multi-Agent Reinforcement Learning Environment for Large Scale City Traffic Scenario
https://cityflow-project.github.io
Apache License 2.0
784 stars 171 forks source link

The engine module in anon_env.py in the MPlight environment does not exist #163

Closed WaterFountain-Jack closed 1 year ago

WaterFountain-Jack commented 1 year ago

The engine module in anon_env.py in the MPlight environment does not exist:

Referring to the code of colight, I modified the 'import engine' to 'import cityflow as engine', but an AttributeError occurred during the operation: 'cityflow. Engine' object has no attribute 'load_roadnet' in load_roadnet self.eng.load_roadnet(os.path.join(self.path_to_work_directory, roadnetFile)).

By the way,I also found an AttributeError in the file data/manhattan/test_script.py :'cityflow.Engine' object has no attribute 'get_average_travel_time'.

Could you give me some suggestions,please? Thank you very, very much!!

WaterFountain-Jack commented 1 year ago

I solve it by use the engin's construct function. Thank u very much again!