From 8ac9239c82246cba6f16b1bfecd2df997b3d667f Mon Sep 17 00:00:00 2001 From: Benjamin Rodenberg Date: Wed, 21 Jan 2026 18:42:27 +0100 Subject: [PATCH 1/2] Fix imports. --- src/ebfm/coupling/couplers/yacCoupler.py | 2 +- src/ebfm/coupling/fields/base.py | 2 +- src/ebfm/coupling/fields/yacField.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ebfm/coupling/couplers/yacCoupler.py b/src/ebfm/coupling/couplers/yacCoupler.py index 3bf8dd8f..e45d9c9e 100644 --- a/src/ebfm/coupling/couplers/yacCoupler.py +++ b/src/ebfm/coupling/couplers/yacCoupler.py @@ -5,7 +5,7 @@ import yac import numpy as np -from ebfm import logging +from ebfm.core import logging from .base import Coupler, Grid, Dict, CouplingConfig diff --git a/src/ebfm/coupling/fields/base.py b/src/ebfm/coupling/fields/base.py index e26bf57d..1bad72ed 100644 --- a/src/ebfm/coupling/fields/base.py +++ b/src/ebfm/coupling/fields/base.py @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: BSD-3-Clause -from coupling.components.base import Component +from ebfm.coupling.components.base import Component from dataclasses import dataclass from typing import Set, Callable diff --git a/src/ebfm/coupling/fields/yacField.py b/src/ebfm/coupling/fields/yacField.py index e9efa875..24609df5 100644 --- a/src/ebfm/coupling/fields/yacField.py +++ b/src/ebfm/coupling/fields/yacField.py @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: BSD-3-Clause -from coupling.fields.base import Field +from .base import Field from dataclasses import dataclass, replace import yac # should not be needed here. Maybe consider actually having a YACField inherit from Field? From fed773e025bf9d7698264d03a496de353fbe5312 Mon Sep 17 00:00:00 2001 From: Benjamin Rodenberg Date: Wed, 21 Jan 2026 19:29:33 +0100 Subject: [PATCH 2/2] Update to current interface of Coupler. --- src/ebfm/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ebfm/main.py b/src/ebfm/main.py index 0d68f785..b501cdef 100644 --- a/src/ebfm/main.py +++ b/src/ebfm/main.py @@ -315,7 +315,7 @@ def main(): logger.debug("Received the following data from Elmer/Ice:", data_from_elmer) IN["h"] = data_from_elmer["h"] - if coupler.couple_to_icon_atmo: + if coupler.has_coupling_to("icon_atmo"): grid["z"] = IN["h"][0].ravel() # TODO add gradient field later # IN['dhdx'] = data_from_elmer('dhdx')