DynamoMotl#

class cryocat.core.cryomotl.DynamoMotl(input_motl=None)#

Bases: Motl

static convert_to_dynamo_motl(motl_df)#

Converts a standard MOTL DataFrame to a Dynamo-style MOTL DataFrame.

This method modifies the dynamo_df attribute of the object.

Returns:
dynamo_df: pd DataFrame
convert_to_motl(dynamo_df)#

Converts a dynamo DataFrame to a motl DataFrame format.

Parameters:
dynamo_dfpandas.DataFrame

The dynamo DataFrame to be converted.

Returns:
None

Notes

This method modifies the df attribute of the object.

static read_in(input_path)#

Reads in a file from the specified input path and returns a pandas DataFrame in dynamo format.

Parameters:
input_pathstr

The path to the input file.

Returns:
pandas.DataFrame

The DataFrame containing the data read from the file in dynamo format.

Raises:
ValueError

If the provided file does not exist.

write_out(output_path)#

Writes the dynamo DataFrame to a .tbl file.

Parameters:
output_pathstr

The path to the output file where the data should be written.

Returns:
None