Skip to content

Commit

Permalink
add missing rename processes
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaHutter committed Sep 4, 2024
1 parent d725e06 commit 02fa762
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def rename_dimension(
raise Exception(
f"DimensionExists - A dimension with the specified name already exists. The existing dimensions are: {data.dims}"
)
data = data.rename({source: target})
# Register dimension in the openeo accessor
if source in data.openeo.spatial_dims:
dim_type = "spatial"
Expand All @@ -124,6 +123,7 @@ def rename_dimension(
dim_type = "bands"
else:
dim_type = "other"
data = data.rename({source: target})
data.openeo.add_dim_type(name=target, type=dim_type)
return data

Expand Down

0 comments on commit 02fa762

Please sign in to comment.