from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Junya Zhou' doc = """ Elicitation of preferences for complexity """ class Constants(BaseConstants): name_in_url = 'Elicitation' players_per_group = None num_rounds = 1 # cost = c(4) class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Complex_choice = models.IntegerField( choices=[ [0, 'Task 1'], [1, 'Task 2'], ], label='', widget=widgets.RadioSelect, ) Q1_choice = models.FloatField( label='Please enter a number between 0.25 and 5 which is a multiple of 0.25.', choices = [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 2.25, 2.5, 2.75, 3, 3.25, 3.5, 3.75, 4, 4.25, 4.5, 4.75, 5], min=0.25, max=5)