pymmcore-MDA-writers

MDA writers for pymmcore-plus


License
BSD-3-Clause
Install
pip install pymmcore-MDA-writers==0.4.0

Documentation

pymmcore-MDA-writers

License PyPI Python Version Test codecov

This package provides writers for pymmcore-plus. At the time of writing pymmc+ provides hooks for saving images but does not implement any mechanism for saving image (check in https://github.com/tlambert03/pymmcore-plus/pull/29 for updates). Currently provided are:

  1. A simple multifile tiff writer - can be loaded with tifffile
  2. A simple zarr writer - not ome-zarr
pip install pymmcore-mda-writers

(This will require a minimum of pymmcore-plus>=0.4.0 which has not yet been released. You can install a working version with pip install git+https://github.com/tlambert03/pymmcore-plus)

All you need to add to your script is:

# tiff writer
writer = SimpleMultiFileTiffWriter("data/tiff_writer_example/run")

# zarr writer
writer = ZarrWriter("data/zarr_writer_example/run", img_shape=(512, 512), dtype=np.uint16)

for a complete example see the examples folder.