dispel.providers.bdh.io.pinch module
Functions for reading BDH formatted mood data.
-
dispel.providers.bdh.io.pinch.create_levels(data)[source]
Create levels from uni-level activity data.
- Parameters:
data (Dict[str, Any]) – Level data
- Returns:
Level data
- Return type:
Dict[str, Any]
-
dispel.providers.bdh.io.pinch.get_level_id(config)[source]
Parse level id from level type and configuration.
- Parameters:
config (dict) – The level configuration
- Returns:
Level id for the level
- Return type:
LevelId
-
dispel.providers.bdh.io.pinch.update_raw_data_definition(definitions)[source]
Update raw data definitions.
- Parameters:
definitions (Dict[str, Any]) – Raw data definitions
- Returns:
Level data
- Return type:
Dict[str, Any]