Open-EO / Open-EO/openeo-python-client

"context" argument support for "callback as a callable" feature

Open
#224 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Python
Stars
217
Forks
56
Avg merge
1d 22h
Merged PRs (30d)
2

Description

related to #223 :

The "callback as a callable" feature (https://open-eo.github.io/openeo-python-client/processes.html#callback-as-a-callable) only support arguments like "x" or "data", e.g.

def avg(data):
    return data.mean()

cube.reduce_dimension(avg, dimension="t")

These "child processes" in principle can also access a "context" argument, so support should be added for that in some way.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the callback-as-callable documentation and related issue #223, then trace the reduce_dimension example to understand how callable arguments are currently handled. Define how child processes should receive a context argument; the work is done when callable callbacks can access context consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.