dispel.providers.bdh.io.cps module#
Function for converting CPS test BDH JSON files into a reading.
- dispel.providers.bdh.io.cps.convert_activity_sequence(data, definition)[source]#
 Convert activity sequence dataset to userInput.
- Parameters:
 definition (RawDataSetDefinition) –
- Return type:
 
- dispel.providers.bdh.io.cps.get_level_id(config)[source]#
 Parse level id from level type and configuration.
- dispel.providers.bdh.io.cps.translate_reference_table_type(table_type)[source]#
 Convert the reference table for CPS test into the expected format.
- Parameters:
 table_type (int) – Either 1, 2, or 3
- Returns:
 List of value definitions
- Return type:
 List[Value]
- Raises:
 ValueError – Raises a value error if the table_type is not in {1,2,3}.