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

Scala version of process graph visitor #359

Open
jdries opened this issue Dec 20, 2024 · 0 comments
Open

Scala version of process graph visitor #359

jdries opened this issue Dec 20, 2024 · 0 comments
Assignees

Comments

@jdries
Copy link
Contributor

jdries commented Dec 20, 2024

In Python, we have this class:

https://github.com/Open-EO/openeo-geopyspark-driver/blob/c7c24656ec83174466a1a9c038b59811b3a297bc/openeogeotrellis/processgraphvisiting.py#L11

It walks over a process graph, and invokes callbacks on a scala object.
We don't have an equivalent in scala, and as a consequence always have to write out callback invocation manually, which is very tedious.

Can we port this class to scala, preferably preserving the separation between an abstract base class and an implementation that invokes callbacks on OpenEOProcessScriptBuilder?

The hope is that we can then store process graphs as json in the scala repo, and easily set up test scenario's based on that json.
Maybe we can even define scenario's entirely in json...

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

No branches or pull requests

2 participants