blimp.preprocessing.operetta_parse_metadata.get_image_metadata

blimp.preprocessing.operetta_parse_metadata.get_image_metadata(metadata_file, out_file=None)[source]

Extracts image metadata from the operetta xml file.

Parameters:
  • metadata_file (Union[str, Path]) – path to the xml metadata file

  • out_file (Union[str, Path, None]) – enter a file path if this dataframe should be written to file (possible extensions are .csv or .pkl)

Returns:

Dimensions (n_rows = length(xmls), n_cols = # xml fields)

Return type:

pandas.DataFrame