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
(I'm not exactly sure what the difference between processed and unprocessed tags is so that may be part of my issue here)
When you look at the repr of xarray_dask_data in a notebook the attrs are rendered as a long string because xarray does not nicely render nested dicts:
It would be nice to process these and when turning it into xarray split these keys up into attrs.
Solution
Break up the processed and unprocessed attrs into individual items so that it renders like this:
You can do this breaking up something like this:
unprocessed= []
processed= []
xarr=gr.xarray_dask_dataattrs=xarr.attrsfork,vinattrs['unprocessed'].items():
attrs[k] =vunprocessed.append(k)
attrs['unprocessed'] =unprocessed# also break up code 50839 which is where it seems MM metadata livesimportjsonfork,vinjson.loads(attrs[50839]['Info']).items():
attrs[k] =vattrs.pop(50839)
# attrsxarr=xarr.assign_attrs(attrs)
Alternatives
Please describe any alternatives you've considered, even if you've dismissed them
The text was updated successfully, but these errors were encountered:
AICSImageIO is entering maintenance mode meaning only critical bugfixes will be applied due to bioio a new python package taking over in place of AICSImageIO with the same features. I copied this feature over to bioio-ome-tiff which is the plugin to bioio responsible for reading OME TIFF files. Feel free to close or move that issue as you see fit.
Use Case
Loading the tiff from a micromanager MDA it seems a large amount of metadata is getting thrown into tag code:
50839
(which is not included in https://www.loc.gov/preservation/digital/formats/content/tiff_tags.shtml) and I can't figure out where it's documented.(I'm not exactly sure what the difference between
processed
andunprocessed
tags is so that may be part of my issue here)When you look at the repr of
xarray_dask_data
in a notebook the attrs are rendered as a long string because xarray does not nicely render nested dicts:It would be nice to process these and when turning it into xarray split these keys up into attrs.
Solution
Break up the
processed
andunprocessed
attrs into individual items so that it renders like this:You can do this breaking up something like this:
Alternatives
Please describe any alternatives you've considered, even if you've dismissed them
The text was updated successfully, but these errors were encountered: