cogpy.io.load_meta

Parse and write XML metadata for OpenEphys-style recordings.

Note

Lab-internal module. Assumes OpenEphys XML metadata files as used in the Bhatt Lab recording setup. Not part of the stable public API.

Functions

parse_meta_from_xml(xml_file)

Extract recording metadata (grid shape, fs, dtype) from an XML file.

parse_xml(xml_file)

Read an XML metadata file and return its contents as a nested dict.

read_acquistionSystem(xml_dict)

Return the acquisitionSystem subtree from a parsed XML dict.

read_dtype(xml_dict)

Return the data-type string (e.g. 'int16') from a parsed XML dict.

unparse_xml(xml_dict, xml_file, **save_kwargs)

Write a dict back to an XML file.