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

support "identity" callbacks

Open
#569 2 comments 0 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.