wingsweihua / colight

CoLight: Learning Network-level Cooperation for Traffic Signal Control
http://personal.psu.edu/hzw77/publications.html
160 stars 58 forks source link

"write roadnet file error" #9

Open datouwenwen opened 4 years ago

datouwenwen commented 4 years ago

hello, i wonder whether you implement the data generation of roadnetLogFile and replayLogFile. After i run runexp.py, an error information "write roadnet file error" appears. Thanks a lot

wingsweihua commented 4 years ago

the data generation is under the document of CityFlow, you might find their doc useful here: https://cityflow.readthedocs.io/en/latest/roadnet.html

vbaddam commented 4 years ago

Even the same problem occurred to me while I implemented runexp.py file.

Janaegj commented 4 years ago

So I am

kclim2 commented 4 years ago

just remove the path in anon_env.py and it should work

"roadnetLogFile": "frontend/web/roadnetLogFile.json",

        "roadnetLogFile": "roadnetLogFile.json",
        "replayLogFile": "replayLogFile.txt"
        #"replayLogFile": "frontend/web/replayLogFile.txt"
feitianhouren commented 1 year ago

Thanks! But I wonder why this way works? Can you give me some advices? How you find this method to fix this error?

I use pdb to follow this error"write roadnet file error", but I can't locate the real location where this error occurs. I set the thread_nums=1, and use pdb to run step by step, no error occurs, it's so weird!