BiaPyX / BiaPy

Open source Python library for building bioimage analysis pipelines
https://BiaPyX.github.io
MIT License
114 stars 28 forks source link

Zarr loading breaks when the zarr has group before arrays #47

Closed ClementCaporal closed 5 months ago

ClementCaporal commented 5 months ago

Hello,

When generating a zarr with the ome zarr tool for example (https://github.com/glencoesoftware/bioformats2raw) there is a high chance that by default the zarr data will be stored in array themselves stored in group.

I propose to add small conditions before trying to access the data in those lines: https://github.com/BiaPyX/BiaPy/blob/d084bedbecc4d1618965f60f1f18f703172801b0/biapy/utils/util.py#L1395C1-L1397

Thank you for your work