Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatically pass through context to UDF from parent process #618

Open
soxofaan opened this issue Sep 13, 2024 · 0 comments
Open

automatically pass through context to UDF from parent process #618

soxofaan opened this issue Sep 13, 2024 · 0 comments

Comments

@soxofaan
Copy link
Member

soxofaan commented Sep 13, 2024

related to

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant