# from otree.api import Currency as c from otree.constants import BaseConstants # # ******************************************************************************************************************** # # *** CLASS CONSTANTS *** # # ******************************************************************************************************************** # class Constants(BaseConstants): currency = '$' conversionrate = 250 # stamp current date and in-12-months date in the Instructions # ----------------------------------------------------------------------------------------------------------------- from datetime import date from datetime import timedelta date1 = date.today() date2 = date1 + timedelta(days=365) today = date1.strftime("%B %d, %Y") in_12_months = date2.strftime("%B %d, %Y") # ---------------------------------------------------------------------------------------------------------------- # # --- Task-specific Settings --- # # ---------------------------------------------------------------------------------------------------------------- # # number of steps in the staircase procedure (see graph in the docs) # note that implies a choice list with <2^x> choices, i.e. <2^x> possible switching points # thus, for instance, yields 32 different classifications for preferences towards risks num_choices = 5 # lottery payoffs (in currency units set in settings.py) and probability (in %) for the high lottery outcome # and define the "high" and "low" outcomes of the lottery ("Option A") # determines the likelihood that the lottery pays the "high" outcome as percentage number # thus, implies that the lottery pays in % and in <100-x>% lottery_hi = 100.00 lottery_lo = 0.00 probability = 50.00 # (initial) sure payoff, i.e. the certain payment in the first choice # defines the certain amount offered as "Option B" in the first of choices # the sure payoffs for subsequent choices are determined by (see below) sure_payoff = 154.00 # (initial) increase/decrease in sure payoff # while the first choice offers a fix payment of , "Option B" in subsequent choices depend on # generally, for choice , if choice # = "A" and if choice = "B" # thus, if a subject chooses "A" ("B"), increases (decreases) by half of the previous rounds # for example: if and , "Option B" offers in choice 2, # in choice 3, etc. delta = 28 # ---------------------------------------------------------------------------------------------------------------- # # --- Overall Settings and Appearance --- # # ---------------------------------------------------------------------------------------------------------------- # # add "indifference" option # if , subjects can only reveal their preference for either "Option A" or "Option B" # if , an additional option is available to indicate indifference between Option "A" and "B" # whenever a subject chooses "Indifferent", the iteration procedure stops as indifference is already reached # thus, if a subject chooses "Indifferent" in some choice , all subsequent choices are automatically skipped # if an "Indifferent" choice is drawn for payoff, it's randomly determined whether "A" or "B" constitute the payment indifference = False # render buttons instead of radio buttons # if , a button will be displayed for each choice ("A", "B", "Indifferent") instead of radio buttons # that is, subjects only click a single button than rather choosing a radio button and clicking on "Next" # accelerates input of choices but implies that decisions can not be modified buttons = False # show progress bar # if and , a progress bar is rendered # if , no information with respect to the advance within the task is displayed # the progress bar graphically depicts the advance within the task in terms of how many decision have been made # further, information in terms of "page x out of " (with x denoting the current choice) is provided progress_bar = True # show instructions page # if , a separate template "Instructions.html" is rendered prior to the task # if , the task starts immediately (e.g. in case of printed instructions) instructions = True # show results page summarizing the task's outcome including payoff information # if , a separate page containing all relevant information is displayed after finishing the task # if , the template "Decision.html" will not be rendered results = False # ---------------------------------------------------------------------------------------------------------------- # # --- oTree Settings (Don't Modify) --- # # ---------------------------------------------------------------------------------------------------------------- # name_in_url = 'Project_BEMO_MAINw' players_per_group = None num_rounds = num_choices