From bb11bfa7c84e6eb96b6e73ae2084cc95efa4a60d Mon Sep 17 00:00:00 2001 From: Panos Athanasiou Date: Wed, 24 Apr 2024 16:56:53 +0200 Subject: [PATCH] corrected raise by for datum ref --- hydromt_fiat/workflows/exposure_vector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hydromt_fiat/workflows/exposure_vector.py b/hydromt_fiat/workflows/exposure_vector.py index 4e376883..fcfe4112 100644 --- a/hydromt_fiat/workflows/exposure_vector.py +++ b/hydromt_fiat/workflows/exposure_vector.py @@ -882,10 +882,10 @@ def raise_ground_floor_height( "Raising the ground floor height of the properties relative to Datum." ) self.exposure_db.loc[ - (self.exposure_db["Ground Floor Height"] < raise_by) + (self.exposure_db["Ground Floor Height"] + self.exposure_db["Ground Elevation"] < raise_by) & self.exposure_db.index.isin(idx), "Ground Floor Height", - ] = raise_by + ] += raise_by - (self.exposure_db["Ground Floor Height"] + self.exposure_db["Ground Elevation"]) elif height_reference.lower() in ["geom", "table"]: # Elevate the objects relative to the surface water elevation map that the