Open-EO / Open-EO/openeo-python-client
support "identity" callbacks
Open
Nobody has claimed this yet.
bug
feature request
good first issue
low hanging fruit
- Dominant language
- Python
- Stars
- 217
- Forks
- 56
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 2
Description
from openeo.internal.processes.builder import convert_callable_to_pgnode
convert_callable_to_pgnode(lambda x: x + 1).flat_graph()
# -> {'add1': {'process_id': 'add', 'arguments': {'x': {'from_parameter': 'x'}, 'y': 1}, 'result': True}}
convert_callable_to_pgnode(lambda x: x).flat_graph()
# -> 'dict' object has no attribute 'flat_graph'
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 with convert_callable_to_pgnode in openeo/internal/processes/builder.py and compare the existing lambda x: x + 1 conversion with the lambda x: x example. Run the shown flat_graph calls, then add identity-callback support so the identity case produces a usable process graph rather than a dict without flat_graph.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100