Skip to content

Commit

Permalink
update codes
Browse files Browse the repository at this point in the history
  • Loading branch information
xyluo25 committed Nov 19, 2024
1 parent b30c0ca commit 38ee03b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Actions:
* [X] For zone file, change id to zone_id
* [ ] Production and Attraction calculation: if poi exits, calculate poi based demand. elif activity node exist, calculate activity_node based demand, else, 0
* [ ] The calculated demands value are small -> change to 'reasonable' values
* [ ] Add multiprocessing on zone centroid mapping with node and poi
* [X] Add multiprocessing on zone centroid mapping with node and poi

1. [ ] Overall link: https://www.caliper.com/tctraveldemand.htm
2. [ ] Add load_zone_census_tracts
Expand Down
2 changes: 0 additions & 2 deletions grid2demand/func_lib/gravity_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ def calc_zone_production_attraction(node_dict: dict, poi_dict: dict, zone_dict:
zone_dict[zone_name]["attraction"] += poi_trip_rate[key] * \
poi_dict[poi_id]["area"] / 1000

# zone_dict[zone_name].production += poi_dict[poi_id].production
# zone_dict[zone_name].attraction += poi_dict[poi_id].attraction
except KeyError:
continue

Expand Down

0 comments on commit 38ee03b

Please sign in to comment.