fishtank.io.read_xml

Contents

fishtank.io.read_xml#

fishtank.io.read_xml(path, parse=True, parse_colors=True)#

Read MERFISH formatted xml file.

Parameters:
  • path (str | Path) – Path to xml file.

  • parse (bool (default: True)) – If True, parse relevant fields.

  • parse_colors (bool (default: True)) – If True, parse color and frame metadata from the shutter configuration string and include colors and frames_per_color in the returned dict. Set to False when a frame table will supply color metadata instead, to avoid errors from non-standard shutter filenames.

Return type:

dict

Returns:

attrs a dictionary of image attributes.