from os import environ SESSION_CONFIGS = [ dict( name='complexity_strategy_choice', display_name='experiment2021S', num_demo_participants=2, app_sequence=['complexity_strategy_choice_Part1','complexity_strategy_choice_Part2'],#Part 1 is trainer app complex_first=0,# 1 if (S1, C) first in Part 2, 0 if (S1,S2) first in Part 2 computation=1, implementation=1, salience=1, #when salience=0, computation and implementation must also be 0. doc=""" Edit the 'complex_first' parameter to change the rank of (S1, C) and (S1, S2) treatment; edit the 'computation', 'implementation' and 'salience' to control for Full, No Computation, No Implementation, Salience and No Salience treatment. """ ), dict( name='complexity_strategy_choice_Part1', display_name='Part 1', num_demo_participants=1, app_sequence=['complexity_strategy_choice_Part1'], #app_sequence=['complexity_Part1_ex'], complex_first=0,# 1 if (S1, C) first, 0 if (S1,S2) first computation=1, implementation=0, salience=1, #when salience=0, computation and implementation must also be 0. doc=""" This is Part 1 of the experiment. """ ), dict( name='complexity_strategy_choice_Part2', display_name='Part 2', num_demo_participants=4, app_sequence=['complexity_strategy_choice_Part2'], complex_first=0,# 1 if (S1, C) first, 0 if (S1,S2) first computation=1, implementation=0, salience=1, #when salience=0, computation and implementation must also be 0. doc=""" Edit the 'complex_first' parameter to change the rank of (S1, C) and (S1, S2) treatment; edit the 'computation', 'implementation' and 'salience' to control for Full, No Computation, No Implementation, Salience and No Salience treatment. """ ), ] # if you set a property in SESSION_CONFIG_DEFAULTS, it will be inherited by all configs # in SESSION_CONFIGS, except those that explicitly override it. # the session config can be accessed from methods in your apps as self.session.config, # e.g. self.session.config['participation_fee'] SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=1/100, participation_fee=5.00, doc="" ) # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = True ROOMS = [ dict( name='econ101', display_name='Econ 101 class', participant_label_file='_rooms/econ101.txt', ), dict(name='live_demo', display_name='Room for live demo (no participant labels)'), ] ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') DEMO_PAGE_INTRO_HTML = """ Here are some oTree games. """ # don't share this with anybody. SECRET_KEY = 's1f5hfl7hsa#izew!n@fbi=lb5(4%p_#*k43p=kuql5_wjvd*h' INSTALLED_APPS = ['otree'] # inactive session configs # dict(name='trust', display_name="Trust Game", num_demo_participants=2, app_sequence=['trust', 'payment_info']), # dict(name='prisoner', display_name="Prisoner's Dilemma", num_demo_participants=2, # app_sequence=['prisoner', 'payment_info']), # dict(name='volunteer_dilemma', display_name="Volunteer's Dilemma", num_demo_participants=3, # app_sequence=['volunteer_dilemma', 'payment_info']), # dict(name='cournot', display_name="Cournot Competition", num_demo_participants=2, app_sequence=[ # 'cournot', 'payment_info' # ]), # dict(name='dictator', display_name="Dictator Game", num_demo_participants=2, # app_sequence=['dictator', 'payment_info']), # dict(name='matching_pennies', display_name="Matching Pennies", num_demo_participants=2, app_sequence=[ # 'matching_pennies', # ]), # dict(name='traveler_dilemma', display_name="Traveler's Dilemma", num_demo_participants=2, # app_sequence=['traveler_dilemma', 'payment_info']), # dict(name='bargaining', display_name="Bargaining Game", num_demo_participants=2, # app_sequence=['bargaining', 'payment_info']), # dict(name='common_value_auction', display_name="Common Value Auction", num_demo_participants=3, # app_sequence=['common_value_auction', 'payment_info']), # dict(name='bertrand', display_name="Bertrand Competition", num_demo_participants=2, app_sequence=[ # 'bertrand', 'payment_info' # ]), # dict(name='public_goods_simple', display_name="Public Goods (simple version from tutorial)", # num_demo_participants=3, app_sequence=['public_goods_simple', 'payment_info']), # dict(name='trust_simple', display_name="Trust Game (simple version from tutorial)", num_demo_participants=2, # app_sequence=['trust_simple']),