Open-EO / openeo-python-client

Python client API for OpenEO
https://open-eo.github.io/openeo-python-client/
Apache License 2.0
156 stars 42 forks source link

Include UDF context parameters when using execute_local_udf #556

Open GriffinBabe opened 7 months ago

GriffinBabe commented 7 months ago

At the moment the user parameters within the UDF are ignored when running locally, as the context field in the UDF object is dismissed here: https://github.com/Open-EO/openeo-python-client/blob/master/openeo/udf/run_code.py#L216

Allowing user context could help to debug faster some UDFs.

A temporary solution would be hard-coding those parameters within the UDF while testing, but in my case this solution is not suitable as I'm performing unit testing of a same UDF both locally and on the cluster.