If a file suffix is .tif or .btf, it should populate a tiff context.
The object needs to follow the protocol bidsschematools.types.protocols.Tiff, possibly just using bidsschematools.types.context.Tiff.
I would suggest we look into the well-maintained Pillow, which has https://pillow.readthedocs.io/en/stable/reference/TiffTags.html, or the highly targeted https://github.com/cgohlke/tifffile/blob/master/tifffile/tifffile.py.
I see that tifffile supports OME-TIFF, so I will update #52 with this option as well.
If a file suffix is
.tifor.btf, it should populate atiffcontext.The object needs to follow the protocol bidsschematools.types.protocols.Tiff, possibly just using bidsschematools.types.context.Tiff.
I would suggest we look into the well-maintained Pillow, which has https://pillow.readthedocs.io/en/stable/reference/TiffTags.html, or the highly targeted https://github.com/cgohlke/tifffile/blob/master/tifffile/tifffile.py.
I see that
tifffilesupports OME-TIFF, so I will update #52 with this option as well.