Skip to content
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: 595 adaptation run and combine losses and damages #616

Merged
merged 91 commits into from
Dec 5, 2024

Conversation

ArdtK
Copy link
Contributor

@ArdtK ArdtK commented Dec 2, 2024

Issue addressed

Solves #595

Code of conduct

  • I HAVE NOT added sensitive or compromised (test) data to the repository.
  • I HAVE NOT added vulnerabilities to the repository.
  • I HAVE discussed my solution with (other) members of the RA2CE team.

What has been done?

  • Extend AnalysisFactory to get an adaptation analysis (was put onder damages at the start)
  • Add the analysis inputs for the damages and losses analyses to the AdaptationOption and AdaptationOptionAnalysis class and change the classmethods to create the collection and options accordingly
  • Run the damages and losses analysis from the AdaptationOption
  • Create AnalysisConfigData.reroot_analysis_config to adjust the paths of the config for a specific analysis.

Checklist

  • Code is formatted using our custom black and isort definitions.
  • Tests are either added or updated.
  • Branch is up to date with master.
  • Updated documentation if needed.

Additional Notes (optional)

  • Network input data has been adjusted
  • Fix some bugs in the csv-readers for losses (object_type was not set`)

ArdtK and others added 30 commits November 27, 2024 13:26
…d-reader' into feat/592-adaptation-create-class-adaptationoptioncollection
…d-reader' into feat/592-adaptation-create-class-adaptationoptioncollection
…d-reader' of https://github.com/Deltares/ra2ce into feat/604-adaptation-extend-analysis-config-dataclass-and-reader
…d-reader' into feat/592-adaptation-create-class-adaptationoptioncollection
…d-reader' into feat/592-adaptation-create-class-adaptationoptioncollection
@ArdtK ArdtK marked this pull request as ready for review December 3, 2024 15:23
Copy link
Collaborator

@Carsopre Carsopre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to revise a few things, but in general I believe it does the work.

ra2ce/analysis/adaptation/adaptation.py Show resolved Hide resolved
ra2ce/analysis/adaptation/adaptation.py Outdated Show resolved Hide resolved
ra2ce/analysis/adaptation/adaptation.py Show resolved Hide resolved
ra2ce/analysis/adaptation/adaptation_option.py Outdated Show resolved Hide resolved
ra2ce/analysis/adaptation/adaptation_option.py Outdated Show resolved Hide resolved
ra2ce/analysis/adaptation/adaptation_option.py Outdated Show resolved Hide resolved
ra2ce/analysis/adaptation/adaptation_option.py Outdated Show resolved Hide resolved
ra2ce/analysis/losses/time_values/time_values_reader.py Outdated Show resolved Hide resolved
tests/analysis/adaptation/test_adaptation.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@Carsopre Carsopre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with some minor remarks.

@ArdtK ArdtK merged commit 24046fa into master Dec 5, 2024
0 of 2 checks passed
@ArdtK ArdtK deleted the feat/595-adaptation-run-and-combine-losses-and-damages branch December 5, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adaptation: run and combine Losses and Damages for BAU and other options
3 participants