Skip to content

Commit

Permalink
small edit
Browse files Browse the repository at this point in the history
  • Loading branch information
nfarabullini committed Jan 14, 2025
1 parent 2371ac2 commit 0d6973d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion model/testing/src/icon4py/model/testing/grid_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0d6973d

Please sign in to comment.