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

AttributeError in gen_agent_based_demand function #28

Open asu-trans-ai-lab opened 2 weeks ago

asu-trans-ai-lab commented 2 weeks ago

related to codes: https://github.com/xyluo25/grid2demand/blob/main/grid2demand/func_lib/gen_agent_demand.py

We encountered the following error when running the gen_agent_based_demand function from the gen_agent_demand.py module:

we have an error AttributeError:'dict'object has no attribute 'x coord'

This error occurs because the function is attempting to access an x_coord attribute that is not present in the dictionary object. As this function is widely used by AB Street users, it is important to resolve this issue for continued functionality.