diff --git a/flood_adapt/database_builder/create_database.py b/flood_adapt/database_builder/create_database.py index 34ce49f3..b97dd231 100644 --- a/flood_adapt/database_builder/create_database.py +++ b/flood_adapt/database_builder/create_database.py @@ -1606,6 +1606,13 @@ def add_infometrics(self): for query in attrs["queries"] if "road" not in query["name"].lower() ] + # Replace Damage Unit + for i, query in enumerate(attrs["queries"]): + if "$" in query["long_name"]: + query["long_name"] = query["long_name"].replace( + "$", self.fiat_model.config["exposure"]["damage_unit"] + ) + # replace the SVI threshold if needed if self.config.svi: for i, query in enumerate(attrs["queries"]):