Open-EO / Open-EO/openeo-python-client
automatically pass through `context` to UDF from parent process
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 217
- Forks
- 56
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 2
Description
related to
- https://github.com/Open-EO/openeo-python-client/issues/520
- https://github.com/Open-EO/openeo-python-client/pull/617
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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