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

automatically pass through `context` to UDF from parent process

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

Nobody has claimed this yet.

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

Description

related to

take this UDF context handling use case:

udf = openeo.UDF(
    "...", 
    context={"from_parameter": "context"},
)
cube = cube.apply(udf, context={"factor": 12.34})

This is an important pattern when using parameterized UDFs in UDPs.

The context={"from_parameter": "context"} is crucial to get this working, but not obvious. I think the python client could do this automatically in the appropriate situations

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 by reading related issue #520 and pull request #617, then trace how UDF context is handled in the client for the example shown. Done means the client automatically passes the parent context in the appropriate parameterized-UDF case without requiring the explicit context mapping.

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.