Open soxofaan opened 5 months ago
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'
constant could be used as "identity" function, see https://github.com/Open-EO/openeo-processes/issues/275
constant
cc @VictorVerhaert