From e6c40c73dbce5dd488f0c17493edcd429d32168b Mon Sep 17 00:00:00 2001 From: Santonia27 <145111392+Santonia27@users.noreply.github.com> Date: Tue, 7 May 2024 13:14:26 +0200 Subject: [PATCH] add warning that SFINCS DEM will be converted to feet (#139) --- src/delftdashboard/models/fiat/exposure_ground_elevation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/delftdashboard/models/fiat/exposure_ground_elevation.py b/src/delftdashboard/models/fiat/exposure_ground_elevation.py index 1206059f..b245c362 100644 --- a/src/delftdashboard/models/fiat/exposure_ground_elevation.py +++ b/src/delftdashboard/models/fiat/exposure_ground_elevation.py @@ -29,6 +29,8 @@ def select_ground_elevation_unit_meters(*args): def select_ground_elevation_file(*args): if app.gui.getvar("fiat", "update_source_ground_elevation") == "sfincs_data": app.gui.setvar("fiat", "ground_elevation_unit", "meters") + if app.active_model.domain.exposure_vm.exposure_buildings_model.unit == "feet": + app.active_model.domain.exposure_vm.logger.warning("SFINCS Ground Elevation is automatically converted from meters into feet") load_sfincs_ground_elevation() elif app.gui.getvar("fiat", "update_source_ground_elevation") == "upload_data": fn = app.gui.window.dialog_open_file(