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

corrected raise by for datum ref #302

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hydromt_fiat/workflows/exposure_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down