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?
Based on the new setting NetworkConfigData.Hazard.overlay_segmented_network (bool) the hazard overlay of the base (segmented) network is done. Default value is True (hazard overlay is created).
If the hazard overlay on the base (segmented) network is created, the files should be exported (base_network_hazard.*).
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)
split HazardOverlay.create() into smaller methods
add locations_hazard to GraphFileCollection to facilitate export
replace networkx.classes.*graph. by networkx. for readability
Issue addressed
Solves #321
Code of conduct
What has been done?
NetworkConfigData.Hazard.overlay_segmented_network
(bool) the hazard overlay of the base (segmented) network is done. Default value isTrue
(hazard overlay is created).base_network_hazard.*
).Checklist
black
andisort
definitions.master
.Additional Notes (optional)