From 0d6973daa99600fb4d7e24a98b0473f0f9f60468 Mon Sep 17 00:00:00 2001 From: Nicoletta Farabullini <41536517+nfarabullini@users.noreply.github.com> Date: Tue, 14 Jan 2025 11:50:48 +0100 Subject: [PATCH] small edit --- .../tests/interpolation_tests/test_interpolation_factory.py | 2 +- model/testing/src/icon4py/model/testing/grid_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/model/common/tests/interpolation_tests/test_interpolation_factory.py b/model/common/tests/interpolation_tests/test_interpolation_factory.py index f2bb8b0f8..8f7f5e192 100644 --- a/model/common/tests/interpolation_tests/test_interpolation_factory.py +++ b/model/common/tests/interpolation_tests/test_interpolation_factory.py @@ -75,7 +75,7 @@ def get_interpolation_factory( backend, experiment, grid_file ) -> interpolation_factory.InterpolationFieldsFactory: registry_key = ( - experiment.join(backend.name) if hasattr(backend, "name") else experiment.join("None") + experiment.join(backend.name) if hasattr(backend, "name") else experiment.join(str(backend)) ) factory = interpolation_factories.get(registry_key) if not factory: diff --git a/model/testing/src/icon4py/model/testing/grid_utils.py b/model/testing/src/icon4py/model/testing/grid_utils.py index ce5d44c16..0d828e1f8 100644 --- a/model/testing/src/icon4py/model/testing/grid_utils.py +++ b/model/testing/src/icon4py/model/testing/grid_utils.py @@ -135,7 +135,7 @@ def get_grid_geometry( xp = data_alloc.array_ns(on_gpu) num_levels = get_num_levels(experiment) register_name = ( - experiment.join(backend.name) if hasattr(backend, "name") else experiment.join("None") + experiment.join(backend.name) if hasattr(backend, "name") else experiment.join(str(backend)) ) def construct_decomposition_info(grid: icon.IconGrid) -> definitions.DecompositionInfo: