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.
[ ] I HAVE discussed my solution with (other) members of the RA2CE team.
What has been done?
Instead of calculating the distance first and based on that calculate the alternative value (distance or time), it now directly calculates the alternative value (and path) based on the weighing.
Checklist
[x] Code is formatted using our custom black and isort definitions.
[x] Tests are either added or updated.
[ ] Branch is up to date with master.
[x] Updated documentation if needed.
Additional Notes (optional)
The dijkstra calls for getting the optimal route (length and nodes) are combined in 1 call.
Issue addressed
Solves #488, introduced by #433.
Code of conduct
What has been done?
Instead of calculating the distance first and based on that calculate the alternative value (distance or time), it now directly calculates the alternative value (and path) based on the weighing.
Checklist
black
andisort
definitions.master
.Additional Notes (optional)
The dijkstra calls for getting the optimal route (length and nodes) are combined in 1 call.