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
10 stars 2 forks source link

Chore/277 refactoring into subclasses #475

Closed Carsopre closed 3 months ago

Carsopre commented 3 months ago

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

Additional Notes (optional)

Several methods have been moved or removed from network_utils as they were no longer used anywhere else.