dispel.providers.mobilized.io module#

Functionality to read Mobilize-D YAR files.

dispel.providers.mobilized.io.context_from_dict(dictionary)[source]#

Flatten and cast to dictionary.

Parameters:

dictionary (Dict) –

Return type:

Context

dispel.providers.mobilized.io.df_from_source(sub_dict, sensor_location)[source]#

Create a dataframe from a nested dictionary and a sensor location.

dispel.providers.mobilized.io.flatten(dictionary, parent_key='', separator='_')[source]#

Flatten a dictionary.

dispel.providers.mobilized.io.parse_context(context)[source]#

Parse the context information available.

Parameters:

context (Dict) – A dictionary extracted from a mobilize-D .mat file

Returns:

The context representation of the passed data.

Return type:

Context

dispel.providers.mobilized.io.parse_mobilized_yar(path, verbose=True)[source]#

Create a reading from mobilize-d .mat yar file.

Parameters:
  • path (str) –

  • verbose (bool) –

Return type:

Reading

dispel.providers.mobilized.io.pre_formatting_yar(dict_mat)[source]#

Pre-format a YAR files.

Parameters:

dict_mat (Dict) –

Return type:

Tuple[str, Dict]

dispel.providers.mobilized.io.read_matlab_file(path)[source]#

Format matlab file to a dictionary.

Parameters:

path (str) –

Return type:

dict

dispel.providers.mobilized.io.unwrap_mat(data)[source]#

Unwrap array generated by scipy load mat.

Parameters:

data (ndarray) –