mat Package

parser

tvb.adapters.uploaders.mat.parser.read_nested_mat_file(data_file, dataset_name, structure_path)[source]

Reads data from deep structures from a .mat file :param data_file: path to the mat file :param dataset_name: matlab variable name :param structure_path: A dot delimited path of field names: topfield.child.leaf :return: the leaf data

tvb.adapters.uploaders.mat.parser.read_nested_mat_structure(m, structure_path)[source]

Reads data from a hierarchical structure array. If object arrays of shape (1,1) are found they are automatically flattened. :param m: A numpy structure array originating from a matlab mat file :param structure_path: A dot delimited path of field names: topfield.child.leaf :return: The leaf