spatialdata icon indicating copy to clipboard operation
spatialdata copied to clipboard

ome-zarr-py labels logging still appears

Open LucaMarconato opened this issue 2 years ago • 1 comments

This log:

no parent found for <ome_zarr.reader.Label object at 0x2a2c3d5a0>: None

which appears when reading labels from Zarr should have been disabled by the code in io_zarr.py, but somehow these logs still appear. It is confusing from the users because it seems that there is a problem when it's actually all ok. We should re-disable it.

LucaMarconato avatar Nov 13 '23 22:11 LucaMarconato

Using this works:

import logging
logging.getLogger('ome_zarr').setLevel(logging.ERROR)

we should put this in the context manager that we are already using (which already does something similar, but that is currently broken).

LucaMarconato avatar Nov 13 '23 22:11 LucaMarconato