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: There is no node with activity_type = 'poi/residential' or is_boundary = '1' #9

Closed jfamadas closed 9 months ago

jfamadas commented 2 years ago

I am running the "Quick start" step by step, but when I reach the "Apply gravity model to perform trip distribution" I get the following error.

"grid2demand_0418b.py[line:1422] - ERROR: There is no node with activity_type = 'poi/residential' or is_boundary = '1'. Please check node.csv!"

I attach a zip containing the OSM file with the map I am currently using.

map.zip

xyluo25 commented 9 months ago

Hi Josep, Thank you for your feedback. We are pleased to inform you that our updated version has addressed this issue.

Additionally, in the 'node.csv' file, the 'activity_type' field includes options like 'None', 'poi', 'residential', etc. In our revised code, please note that entries where 'activity_type' is 'None' are not included in our gravity model calculations.