from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) import random import numpy as np class Constants(BaseConstants): name_in_url = "Personality_traits" players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Q1 = models.IntegerField(label=" Is talkative", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q2 = models.IntegerField(label=" Tends to find fault with others", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q3 = models.IntegerField(label="Does a thorough job", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q4 = models.IntegerField(label=" Is depressed, blue", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q5 = models.IntegerField(label="Is original, comes up with new ideas", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q6 = models.IntegerField(label="Is reserved", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q7 = models.IntegerField(label=" Is helpful and unselfish with others", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q8 = models.IntegerField(label="Can be somewhat careless", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q9 = models.IntegerField(label=" Is relaxed, handles stress well. ", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q10 = models.IntegerField(label="  Is curious about many different things", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q11 = models.IntegerField(label="Is full of energy", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q12 = models.IntegerField(label="  Starts quarrels with others", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q13 = models.IntegerField(label="Is a reliable worker", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q14 = models.IntegerField(label="Can be tense", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q15 = models.IntegerField(label=" Is ingenious, a deep thinker", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q16 = models.IntegerField(label="Generates a lot of enthusiasm", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q17 = models.IntegerField(label=" Has a forgiving nature", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q18 = models.IntegerField(label="Tends to be disorganized", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q19 = models.IntegerField(label="Worries a lot", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q20 = models.IntegerField(label="Has an active imagination", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q21 = models.IntegerField(label="Tends to be quiet", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q22 = models.IntegerField(label=" Is generally trusting", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q23 = models.IntegerField(label="Tends to be lazy", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q24 = models.IntegerField(label=" Is emotionally stable, not easily upset", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q25 = models.IntegerField(label="Is inventive", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q26 = models.IntegerField(label=" Has an assertive personality", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q27 = models.IntegerField(label="Can be cold and aloof", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q28 = models.IntegerField(label="Perseveres until the task is finished", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q29 = models.IntegerField(label=" Can be moody", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q30 = models.IntegerField(label="Values artistic, aesthetic experiences", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q31 = models.IntegerField(label="Is sometimes shy, inhibited", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q32 = models.IntegerField(label="Is considerate and kind to almost everyone", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q33 = models.IntegerField(label="Does things efficiently", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q34 = models.IntegerField(label="Remains calm in tense situations", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q35 = models.IntegerField(label=" Prefers work that is routine", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q36 = models.IntegerField(label="Is outgoing, sociable", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q37 = models.IntegerField(label=" Is sometimes rude to others", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q38 = models.IntegerField(label=" Makes plans and follows through with them", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q39 = models.IntegerField(label="Gets nervous easily", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q40 = models.IntegerField(label="Likes to reflect, play with ideas", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q41 = models.IntegerField(label="Has few artistic interests", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q42 = models.IntegerField(label=" Likes to cooperate with others", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q43 = models.IntegerField(label=" Is easily distracted", choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal) Q44 = models.IntegerField(label="Is sophisticated in art, music, or literature", choices=[1, 2, 3, 4, 5],widget=widgets.RadioSelectHorizontal)