DICS module
- async apps.libs.questionnaire_disc.lib.disc_questions.get_disc_questions() DISCQuestionListSchema[source]
Load questions for dict test from file and return
- Returns:
questions
- Return type:
DISCQuestionListSchema
- async apps.libs.questionnaire_disc.lib.disc_questions.get_disc_score(disc_answers: DISCQuestionListSchema) DISCScoresSchema[source]
Get coordinates for plot from person’s answers for the disk test
- Parameters:
disc_answers (DISCQuestionListSchema) – person’s answers
- Returns:
coordinates for adaptive and natural assessment
- Return type:
DISCScoresSchema
- async apps.libs.questionnaire_disc.lib.disc_questions.get_adapt_score(disc_answers: DISCQuestionListSchema, scores: List) List[source]
Get coordinates for a adaptive assessment on the disk test
- Parameters:
disc_answers (DISCQuestionListSchema) – Person’s answers
scores (List) – Values for answers
- Returns:
4 coordinates for adaptive score plot
- Return type:
List
- async apps.libs.questionnaire_disc.lib.disc_questions.get_natural_score(disc_answers: DISCQuestionListSchema, scores: List) List[source]
Get coordinates for a natural assessment on the disk test
- Parameters:
disc_answers (DISCQuestionListSchema) – Person’s answers
scores (List) – Values for answers
- Returns:
4 coordinates for natural score plot
- Return type:
List
- async apps.libs.questionnaire_disc.lib.disc_questions.get_coord(score: int, max_value_score: int, inverse: bool = False) float[source]
Normalizes the coordinate from 0 to 1 and inverts it if necessary
- Parameters:
score (int) – Human parameter score
max_value_score (int) – highest possible score
inverse (bool, optional) – True if need inverts score (1 - score). Defaults to False.
- Returns:
final score/coord for diagram
- Return type:
float