cryocat.core.cryomotl.emmotl2stopgap#

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

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

Parameters:
input_motlstr or pandas.DataFrame or EmMotl

Path to the input EM MOTL file or an already loaded EmMotl 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.

reset_indexbool, default=False

If True, the index of the DataFrame will be reset before writing out.

Returns:
sg_motlStopgapMotl

The converted StopgapMotl object.