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(adapters):update to latest delft fiat release dod #666

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

Santonia27
Copy link
Contributor

No description provided.

@Santonia27 Santonia27 linked an issue Jan 30, 2025 that may be closed by this pull request
@Santonia27 Santonia27 changed the title 651 update to latest delft fiat release dod feat(misc):update to latest delft fiat release dod Feb 3, 2025
@Santonia27 Santonia27 changed the title feat(misc):update to latest delft fiat release dod feat(adapters):update to latest delft fiat release dod Feb 3, 2025
@@ -91,6 +100,34 @@ def __init__(
self.config_base_path = config_base_path
self.exe_path = exe_path
self.delete_crashed_runs = delete_crashed_runs
self.fiat_columns_dict = {
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this needed? You redefine all the names bellow in the fiat_output_mapping dictionary, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because I only need the output mapping for the metrics after calculating the metrics.
Beforehand to actually do the calculation I used the self,fiat_columns_dict

column=config["column"],

metrics_exposure = self.add_exceedance_probability(
column=FiatColumns.inundation_depth,
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not always the inundation depth. It is provided in the config and could be the total damage for example. So probably the mapping dictionary should be used here as well?

self.add_exceedance_probability(
column=config["column"],

metrics_exposure = self.add_exceedance_probability(
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this called metrics exposure? It is the output table per object right?

Copy link
Contributor Author

@Santonia27 Santonia27 Feb 6, 2025

Choose a reason for hiding this comment

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

hmmm because it's the exposure data but for the output metrics.
maybe mapped_exposure_df?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think in the test it would be nice to use the class from the Fiat Adapter when calling column names

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.

Update to latest Delft-FIAT release (DoD)
2 participants