pycequeau.core.matlab_utils module

Utilities for converting between Python data and MATLAB (.mat) formats.

pycequeau.core.matlab_utils.dataframe_to_struct_array(df: DataFrame) ndarray[source]

Convert DataFrame to MATLAB struct-array layout (1xN struct).

pycequeau.core.matlab_utils.mat_field_value(value)[source]

Normalize a single table value to MATLAB-friendly field content.

pycequeau.core.matlab_utils.mat_to_py(value)[source]

Recursively convert scipy.loadmat objects into plain Python containers.

pycequeau.core.matlab_utils.to_mat_compatible(value)[source]

Recursively convert Python containers to scipy.savemat-compatible values.