fractal-analytics-platform / fractal-tasks-core

Main tasks for the Fractal analytics platform
https://fractal-analytics-platform.github.io/fractal-tasks-core/
BSD 3-Clause "New" or "Revised" License
12 stars 6 forks source link

`check_valid_ROI_indices` is too strict #554

Closed jluethi closed 10 months ago

jluethi commented 10 months ago

The check_valid_ROI_indices function is too strict at the moment, see https://github.com/fractal-analytics-platform/fractal-tasks-core/blob/0ae4590980230734c6b017af2aea7253cdd30926/fractal_tasks_core/lib_regions_of_interest.py#L303C14-L303C14

It checks that there is a given ROI with 0, 0, 0 origin. But in some search-first scenario, there are not FOVs at the top left. There is one FOV with y value 0 and one FOV with x value 0, but they do not need to be the same ROI. That would be sufficient and should be a supported use case.

Here is a valid ROI table that now fails, but that worked before (I already did the shifts so everything starts at 0). This ROI table should pass the check, but the current way of checking does not pass.

site_metadata_ZebrafishMultiplexing_cycle0_new_rois.csv