asu-trans-ai-lab / grid2demand

A tool for generating zone-to-zone travel demand based on grid zones and gravity model
Apache License 2.0
71 stars 21 forks source link

Error: invalid continuation byte #17

Closed aditrademark closed 9 months ago

aditrademark commented 11 months ago

I have noticed that running the following line causes the code to throw an error.

Step 1: Load node and poi data from input directory node_dict, poi_dict = gd.load_network.values()

The error thrown is as follows. image_2023-10-31_205817454

I have replicated this issue under different conditions and I have come to the conclusion that the problem is caused by poi.csv file generated from osm2gmns. It would seem that the first column "name" in poi.csv causes this issue and deleting this column "fixes" the issue. The image below should give some context.

WhatsApp Image 2023-10-22 at 22 22 17

Please let me know if my conclusion of the source of the problem is incorrect. Thank you.

xyluo25 commented 9 months ago

Hi Aditya, Thank you and our updated version has resolved it.