cryocat.core.cryomotl.stopgap2emmotl#

cryocat.core.cryomotl.stopgap2emmotl(input_motl, output_motl_path=None, update_coordinates=False)#

Converts a StopgapMotl to EmMotl format and optionally writes it to a file.

Parameters:
input_motlstr or pandas.DataFrame or StopgapMotl

Path to the input STOPGAP MOTL file or an already loaded StopgapMotl object.

output_motl_pathstr, optional

If provided, the converted motl will be written to this path.

update_coordinatesbool, default=False

If True, updates the coordinates in the DataFrame.

Returns:
em_motlEmMotl

The converted EmMotl object.