Deltares / ra2ce

RA2CE helps to quantify resilience of critical infrastructure networks, prioritize interventions and adaptation measures and select the most appropriate action perspective to increase resilience considering future conditions.
https://deltares.github.io/ra2ce/
Other
7 stars 1 forks source link

Fix/410 replace simplify graph with osmnx #465

Closed ArdtK closed 1 month ago

ArdtK commented 1 month ago

Issue addressed

Solves #410

Code of conduct

What has been done?

The copied function osmnx.simplification.simplify_graph required the presence of node attributes x and y. For this reason a custom copy was created. This custom copy has been removed and attributes x and y are added to the nodes, if needed, prior to calling this function.

Checklist

Additional Notes (optional)

As this logic was implemented already somewhere else, it was moved to network_utils.