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

Open
wants to merge 82 commits into
base: master
Choose a base branch
from

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 change the classmethods to create the collection and options accordingly
  • Run the damages and losses analysis from the AdaptationOption

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 Show resolved Hide resolved
ra2ce/analysis/adaptation/adaptation.py Show resolved Hide resolved
Comment on lines +122 to +124
_damages_config.config_data = replace_paths(
_damages_config.config_data, "damages"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this replacing of path an assumption?

tests/analysis/adaptation/test_adaptation.py Show resolved Hide resolved
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