Skip to content

Commit

Permalink
De meest recente versie die lotte ook gebruikt voor haar social inclu…
Browse files Browse the repository at this point in the history
…siveness analyse.
  • Loading branch information
mjevanmarle committed Jul 19, 2021
1 parent f0d2496 commit 7d1c70f
Show file tree
Hide file tree
Showing 6 changed files with 190 additions and 82 deletions.
Binary file modified input/user_input_tests.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion old/criticality/network_functions_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,7 @@ def add_od_nodes(graph, od, id_name, name=None, file_output=None, save_shp=False
# Check which roads belong to the centroids closest vertices
all_matches = [e for e in graph.edges(data=True, keys=True) if str(e[-1][id_name]) == od.iloc[i]['match_ids']]
if len(all_matches) > 1:
all_matches = [am for am in all_matches if match_OD in [Point(p) for p in set(list(am[-1]['geometry'].coords))]]
all_matches = [am for am in all_matches if match_OD in [(Point(p) for p in set(list(am[-1]['geometry'].coords)))]]
m = all_matches[0]

if 'geometry' in m[-1]:
Expand Down
Loading

0 comments on commit 7d1c70f

Please sign in to comment.