Skip to content

Commit

Permalink
Apply dim (#201)
Browse files Browse the repository at this point in the history
* update params for apply dim

* update params for apply dim
  • Loading branch information
ValentinaHutter authored Nov 28, 2023
1 parent 0fba2ab commit 8d9e3fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openeo_processes_dask/process_implementations/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def wrapper(
else:
resolved_kwargs[k] = arg

special_args = ["axis", "keepdims", "source_transposed_axis"]
special_args = ["axis", "keepdims", "source_transposed_axis", "context"]
# Remove 'axis' and keepdims parameter if not expected in function signature.
for arg in special_args:
if arg not in inspect.signature(f).parameters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def apply_dimension(
"axis": reordered_data.get_axis_num(dimension),
"keepdims": True,
"source_transposed_axis": data.get_axis_num(dimension),
"context": context,
},
exclude_dims={dimension},
)
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 = "2023.11.5"
version = "2023.11.6"
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 8d9e3fb

Please sign in to comment.