from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Magnus Strobel' doc = """ Your app description """ def create_big_five_question(label): return models.IntegerField( # blank = True, choices = [ [1, ""], [2, ""], [3, ""], [4, ""], [5, ""], ], label = label, widget = widgets.RadioSelectHorizontal, ) class Constants(BaseConstants): name_in_url = 'personality_test_one' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): # https://zis.gesis.org/skala/Rammstedt-Kemper-Klein-Beierlein-Kovaleva-Big-Five-Inventory-(BFI-10) q1 = create_big_five_question("I see myself as someone who is reserved.") q2 = create_big_five_question("I see myself as someone who is generally trusting.") q3 = create_big_five_question("I see myself as someone who tends to be lazy.") q4 = create_big_five_question("I see myself as someone who is relaxed, handles stress well.") q5 = create_big_five_question("I see myself as someone who has few artistic interests.") q6 = create_big_five_question("I see myself as someone who is outgoing, sociable.") q7 = create_big_five_question("I see myself as someone who tends to find fault with others.") q8 = create_big_five_question("I see myself as someone who does a thorough job.") q9 = create_big_five_question("I see myself as someone who gets nervous easily.") q10 = create_big_five_question("I see myself as someone who has an active imagination.")