Skip to content

Commit

Permalink
add warning that SFINCS DEM will be converted to feet (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Santonia27 authored May 7, 2024
1 parent 255b078 commit e6c40c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/delftdashboard/models/fiat/exposure_ground_elevation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e6c40c7

Please sign in to comment.