dcegm.interfaces.interface_checks¶
Functions¶
|
Check if the states and choices are valid according to the model structure. |
Module Contents¶
- dcegm.interfaces.interface_checks.check_states_and_choices(states, choices, model_structure)¶
Check if the states and choices are valid according to the model structure.
- Parameters:
states (dict) – Dictionary containing state values.
choices (int) – The choice value.
model_structure (dict) – Model structure containing information on discrete states and choices.
- Returns:
Dictionary containing the states and choices,
- Return type:
state_choices (dict)