From 8d9e3fb009676a39c3ce5009bc1c09909e5bbfb3 Mon Sep 17 00:00:00 2001 From: ValentinaHutter <85164505+ValentinaHutter@users.noreply.github.com> Date: Tue, 28 Nov 2023 14:33:11 +0100 Subject: [PATCH] Apply dim (#201) * update params for apply dim * update params for apply dim --- openeo_processes_dask/process_implementations/core.py | 2 +- openeo_processes_dask/process_implementations/cubes/apply.py | 1 + pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openeo_processes_dask/process_implementations/core.py b/openeo_processes_dask/process_implementations/core.py index cefaf919..e3fa7ce7 100644 --- a/openeo_processes_dask/process_implementations/core.py +++ b/openeo_processes_dask/process_implementations/core.py @@ -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: diff --git a/openeo_processes_dask/process_implementations/cubes/apply.py b/openeo_processes_dask/process_implementations/cubes/apply.py index 381769f7..6737c1fe 100644 --- a/openeo_processes_dask/process_implementations/cubes/apply.py +++ b/openeo_processes_dask/process_implementations/cubes/apply.py @@ -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}, ) diff --git a/pyproject.toml b/pyproject.toml index 44f8f150..8725d394 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ", "Sean Hoyal ", "Valentina Hutter "] maintainers = ["EODC Staff "]