-
Notifications
You must be signed in to change notification settings - Fork 15
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
labelled arrays #155
labelled arrays #155
Conversation
Thanks for this MIchele! Just a heads-up, I didn't get around to look at this yet and am on holiday from tomorrow until Monday - I'll have a look next week though! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a first look now - thanks for looking into this!
The general approach of just passing labels through to child processes looks fine to me. I'd recommend adding another reserved parameter to the list in https://github.com/Open-EO/openeo-processes-dask/blob/main/openeo_processes_dask/process_implementations/core.py#L71C1-L72C1
. This removes the parameter if the subprocess can't do anything with it and we shouldn't need to touch all the math processes. Wdyt?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #155 +/- ##
==========================================
- Coverage 83.25% 83.20% -0.06%
==========================================
Files 29 29
Lines 1529 1536 +7
==========================================
+ Hits 1273 1278 +5
- Misses 256 258 +2 ☔ View full report in Codecov by Sentry. |
@LukeWeidenwalker I followed your suggestion, it seems to work fine. |
@ValentinaHutter @GeraldIr it would be good if you could review this and merge it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@ValentinaHutter @GeraldIr please have a look again at this PR so that it can be merged. |
First draft to support labelled arrays.
I modified only the processes required to run the following simple example. We would have to go through all the math processes and others as well if we want to implement this.