Skip to content

Commit

Permalink
should not index a string
Browse files Browse the repository at this point in the history
  • Loading branch information
sean committed Feb 2, 2024
1 parent ca3226a commit e16602a
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 @@ -88,7 +88,7 @@ def mask_polygon(
for i, d in enumerate(data_dims):
data_chunks[d] = chunks_shapes[i][0]

if data_dims.index(x_dim[0]) < data_dims.index(y_dim[0]):
if data_dims.index(x_dim) < data_dims.index(y_dim):
final_mask = da.zeros(
(x_dim_size, y_dim_size),
chunks={x_dim: data_chunks[x_dim], y_dim: data_chunks[y_dim]},
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openeo-processes-dask"
version = "2024.1.1"
version = "2024.1.2"
description = "Python implementations of many OpenEO processes, dask-friendly by default."
authors = ["Lukas Weidenholzer <lukas.weidenholzer@eodc.eu>", "Sean Hoyal <sean.hoyal@eodc.eu>", "Valentina Hutter <valentina.hutter@eodc.eu>"]
maintainers = ["EODC Staff <support@eodc.eu>"]
Expand Down

0 comments on commit e16602a

Please sign in to comment.