-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 659 convert damage classes into dataclasses; add a reader for damage curves #656
feat: 659 convert damage classes into dataclasses; add a reader for damage curves #656
Conversation
…s-without-input-files
…ut-files' of https://github.com/Deltares/ra2ce into feat/654-experiment-with-damages-and-losses-without-input-files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some remarks need to be addressed prior to merge of this issue. Please have special attention to the comments made on ra2ce/analysis/damages/damage_functions/damage_function_road_type_lane.py
In addition, please ensure either the issue linked to this PR or its parent issue contain a description on why these changes are required.
ra2ce/analysis/damages/damage_functions/damage_fraction_uniform.py
Outdated
Show resolved
Hide resolved
ra2ce/analysis/damages/damage_functions/damage_fraction_uniform.py
Outdated
Show resolved
Hide resolved
ra2ce/analysis/damages/damage_functions/damage_function_road_type_lane.py
Outdated
Show resolved
Hide resolved
ra2ce/analysis/damages/damage_functions/damage_function_road_type_lane.py
Outdated
Show resolved
Hide resolved
ra2ce/analysis/damages/damage_calculation/damage_network_base.py
Outdated
Show resolved
Hide resolved
tests/analysis/damages/damage_functions/test_manual_damage_functions_reader.py
Show resolved
Hide resolved
ra2ce/analysis/damages/damage_functions/damage_function_road_type_lane.py
Outdated
Show resolved
Hide resolved
ra2ce/analysis/damages/damage_functions/manual_damage_functions_reader.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two lesser remarks.
Issue addressed
Solves #659
Code of conduct
What has been done?
analysis\damages\damage
toanalysis\damages\damage_functions
. Not having damages functions will fail not the initialization.ManualDamageFunctions
into a dataclass and a reader.DamageFractionUniform
andMaxDamage
(renamed fromMaxDamageByRoadTypeByLane
) into dataclasses.Damages
to read the damage functions in the init.Checklist
black
andisort
definitions.master
.Additional Notes (optional)
Add any additional notes or information that may be helpful.