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.
[x] I HAVE NOT added sensitive or compromised (test) data to the repository.
[x] I HAVE NOT added vulnerabilities to the repository.
[x] I HAVE discussed my solution with (other) members of the RA2CE team.
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
[x] Code is formatted using our custom black and isort definitions.
[x] Tests are either added or updated.
[x] Branch is up to date with master.
[x] Updated documentation if needed.
Additional Notes (optional)
As this logic was implemented already somewhere else, it was moved to network_utils.
Issue addressed
Solves #410
Code of conduct
What has been done?
The copied function
osmnx.simplification.simplify_graph
required the presence of node attributesx
andy
. For this reason a custom copy was created. This custom copy has been removed and attributesx
andy
are added to the nodes, if needed, prior to calling this function.Checklist
black
andisort
definitions.master
.Additional Notes (optional)
As this logic was implemented already somewhere else, it was moved to
network_utils
.