From 256e5877d7151a9e293cba5c62b40df0ec30472a Mon Sep 17 00:00:00 2001 From: Benjamin Rodenberg Date: Wed, 17 Dec 2025 11:37:06 +0100 Subject: [PATCH 1/2] Use config.grid_type to fix runtime error --- src/ebfm/INIT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ebfm/INIT.py b/src/ebfm/INIT.py index c9139ceb..90b3cb84 100644 --- a/src/ebfm/INIT.py +++ b/src/ebfm/INIT.py @@ -191,7 +191,7 @@ def init_grid(grid, io, config: GridConfig): if config.grid_type is GridInputType.ELMERXIOS: grid = read_dem_xios(config.dem_file, grid) - if grid["input_type"] is GridInputType.ELMERXIOS: + if config.grid_type is GridInputType.ELMERXIOS: min_thickness_glacier = 1.0 # minimum ice thickness to consider grid cell as glacier (m) # treats grid cells as glacier where ice thickness exceeds threshold From 7fe1cae9ff352e7b771c84b60fd218a213a85a01 Mon Sep 17 00:00:00 2001 From: Benjamin Rodenberg Date: Mon, 19 Jan 2026 16:31:16 +0100 Subject: [PATCH 2/2] Revert "Use config.grid_type to fix runtime error" This reverts commit 256e5877d7151a9e293cba5c62b40df0ec30472a. --- src/ebfm/INIT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ebfm/INIT.py b/src/ebfm/INIT.py index 90b3cb84..c9139ceb 100644 --- a/src/ebfm/INIT.py +++ b/src/ebfm/INIT.py @@ -191,7 +191,7 @@ def init_grid(grid, io, config: GridConfig): if config.grid_type is GridInputType.ELMERXIOS: grid = read_dem_xios(config.dem_file, grid) - if config.grid_type is GridInputType.ELMERXIOS: + if grid["input_type"] is GridInputType.ELMERXIOS: min_thickness_glacier = 1.0 # minimum ice thickness to consider grid cell as glacier (m) # treats grid cells as glacier where ice thickness exceeds threshold