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:
Return type:

RawDataSet

dispel.providers.bdh.io.cps.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.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}.

dispel.providers.bdh.io.cps.translate_sequence_type(sequence_type)[source]#

Convert the sequence type for the CPS test into the expected format.

Parameters:

sequence_type (str) –

Return type:

List[Value]