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 5 forks source link

Allow processing of subset of available channels in Create OME-Zarr #589

Open jluethi opened 8 months ago

jluethi commented 8 months ago

A user should probably be able to process only some of the available channels. For example, they may not want to process channel A02_C02, even though it was acquired.

Currently, when they only specify the channels they want to process, an error like this occurs:

  File "/net/nfs4/pelkmanslab-fileserver-fractal/data/homes/fractal/20230627_joel_fractal/fractal-demos/examples/server/FRACTAL_TASKS_DIR/.fractal/fractal-tasks-core0.13.0/venv/lib/python3.10/site-packages/fractal_tasks_core/tasks/create_ome_zarr_multiplex.py", line 216, in create_ome_zarr_multiplex
    raise ValueError(msg)
ValueError: ERROR in create_ome_zarr
actual_wavelength_ids: ['A01_C01', 'A01_C04', 'A02_C02', 'A03_C03']
allowed_wavelength_ids: ['A01_C01', 'A03_C03', 'A01_C04']