etspy.io.parse_mdoc(mdoc_file: str | Path, series: bool = False) tuple[dict, ndarray | float][source]

Parse experimental parameters from a SerialEM MDOC file.

Parameters:
mdoc_file: str | Path

Name of a SerialEM MDOC file

series: bool = False

If True, the MDOC files originated from a multiscan SerialEM acquisition. If False, the files originated from a single scan SerialEM acquisition.

Returns:

  • metadata (dict) – A dictionary containing the metadata read from the MDOC file

  • tilt (ndarray or float) – If series is true, tilt will be a single float value, otherwise it will be an ndarray containing multiple tilt values.