Open-EO / openeo-processes-dask

Python implementations of many OpenEO processes, dask-friendly by default.
Apache License 2.0
19 stars 14 forks source link

tests for `filter_labels` missing #256

Open clausmichele opened 2 months ago

clausmichele commented 2 months ago

The implementation of filter_labels is here: https://github.com/Open-EO/openeo-processes-dask/blob/9267e4ccffbbbf755cb7b8a43ba80d9483398314/openeo_processes_dask/process_implementations/cubes/_filter.py#L90

However, I can't find any test or examples using it.

I would like to use it to filter specific dates from a datacube. Something similar to what is done here: https://github.com/Open-EO/openeo-community-examples/blob/815ab0cf4662a1b2be0881f55a9d4896467ed224/python/ParcelDelineation/Parcel%20delineation.ipynb

@ValentinaHutter @GeraldIr do you use filter_labels somewhere?

ValentinaHutter commented 2 months ago

Thanks for pointing this out! We do not use it, yet, but I tested it this week and found that:

I think we can try to get these changes done in the next few weeks.

Meanwhile, does it make sense to you to use filter_temporal instead?

Also, to list all things that need to be done:

clausmichele commented 3 weeks ago

Hi @ValentinaHutter, do you have plans to work on this? Being able to filter only specific dates is a feature which would be helpful to many. The use of filter_temporal is a workaround but for many dates generates an over-complex graph and it's also not trivial to implement client side.