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?
Refactored the original code of #474 into smaller classes, added some dataclasses and introduced a factory to reduce complexity and improve readability of the logic added in said PR.
Checklist
[x] Code is formatted using our custom black and isort definitions.
[ ] Tests are either added or updated.
[x] Branch is up to date with master.
[ ] Updated documentation if needed.
Additional Notes (optional)
Several methods have been moved or removed from network_utils as they were no longer used anywhere else.
Issue addressed
(Partially) Solves #277
Code of conduct
What has been done?
Refactored the original code of #474 into smaller classes, added some dataclasses and introduced a factory to reduce complexity and improve readability of the logic added in said PR.
Checklist
black
andisort
definitions.master
.Additional Notes (optional)
Several methods have been moved or removed from
network_utils
as they were no longer used anywhere else.