dispel.providers.bdh.io.core module#
Function for converting BDH JSON files into a reading.
- dispel.providers.bdh.io.core.convert_dataset(data, definition, ref)[source]#
Convert dataset column names.
- dispel.providers.bdh.io.core.get_level_id_two_hands(config)[source]#
Parse level id from level type and configuration for two hands level test.
- dispel.providers.bdh.io.core.parse_epoch(data)[source]#
Parse the effective time frame of a reading.
- dispel.providers.bdh.io.core.parse_raw_data_set(data, definition)[source]#
Parse raw data set for a reading.
- Parameters:
data (Dict) – The raw data set data in BDH json format.
definition (RawDataSetDefinition) – The definition of the raw data set.
- Returns:
The created raw data set object.
- Return type:
- dispel.providers.bdh.io.core.parse_raw_data_sets(data, definitions)[source]#
Parse raw data sets for a reading.
- Parameters:
data (Dict) – The data for all raw data sets.
definitions (Dict[str, RawDataSetDefinition]) – A dictionary with the definitions of the data sets passed in data.
- Returns:
A list of created raw data sets.
- Return type:
List[RawDataSet]
- Raises:
ValueError – If a definition is not found for a data set.