-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
…into 651-update-to-latest-delft-fiat-release-dod
@@ -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 = { |
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.
why is this needed? You redefine all the names bellow in the fiat_output_mapping dictionary, right?
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.
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
flood_adapt/adapter/fiat_adapter.py
Outdated
column=config["column"], | ||
|
||
metrics_exposure = self.add_exceedance_probability( | ||
column=FiatColumns.inundation_depth, |
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.
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?
flood_adapt/adapter/fiat_adapter.py
Outdated
self.add_exceedance_probability( | ||
column=config["column"], | ||
|
||
metrics_exposure = self.add_exceedance_probability( |
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.
why is this called metrics exposure? It is the output table per object right?
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.
hmmm because it's the exposure data but for the output metrics.
maybe mapped_exposure_df?
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.
I think in the test it would be nice to use the class from the Fiat Adapter when calling column names
…into 651-update-to-latest-delft-fiat-release-dod
No description provided.