You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a known limitation (see discussion at AllenCellModeling/aicsimageio#178 (comment)) but I don't think it's a bug since zarr does not strictly require stores to be picklable (https://github.com/zarr-developers/zarr-python/blob/master/docs/tutorial.rst#pickle-support). I think aicsimageio works around this limitation by opening a new ZarrTiffStore in each process.
Fundamentally, tifffile.ZarrTiffStore is not picklable because it uses a TiffFile instance, which uses system handles (file handles and threads). To make tifffile.ZarrTiffStore picklable would need a different approach outlined in AllenCellModeling/aicsimageio#178 (comment). However I expect that to be significantly slower than the current implementation, both in initialization and chunk access.
@ieivanov, the zarr.convenience.copy_store helper method may do what you want. It won't produce pickled data, but it should convert the data from TIFF to Zarr on disk for later re-use.
zarr arrays created with
tifffile
cannot be pickled. This prevents using zarr arrays in multiprocessing applications.Running:
throws the error:
I believe this is caused by this part of the code:
tifffile/tifffile/tifffile.py
Lines 12454 to 12461 in d2fe871
functools.wraps
as described here: http://gael-varoquaux.info/programming/decoration-in-python-done-right-decorating-and-pickling.htmlThe text was updated successfully, but these errors were encountered: