from os import environ # 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=0.03, participation_fee=2.00, doc="" ) #cd ~/Desktop/oTree-master SESSION_CONFIGS = [ dict( name='baseline_', display_name="baseline_", num_demo_participants=3, app_sequence=['Finance_experiment_questionnaire_without_ML', 'Finance_experiment_without_ML_1', 'Finance_experiment_without_ML_2'], ), dict( name='treat_', display_name='treat_', num_demo_participants=2, app_sequence=['Finance_experiment_questionnaire', 'Finance_experiment_with_ML', 'Finance_experiment_without_ML_2'], ), #'Finance_experiment_questionnaire', dict(#iportant to remeber that we need a multiple of 2 name='ai_reciprocity', display_name='ai_reciprocity', num_demo_participants=2, app_sequence=['final_design_ak'], ), # =================== For Testing Questionnaire ============== # console: otree test treat_quest --export dict( name='treat_quest', display_name='treat_', num_demo_participants=30, app_sequence=['Finance_experiment_questionnaire'], ), # For testing # console: otree test baseline_quest --export dict( name='baseline_quest', display_name='treat_', num_demo_participants=30, app_sequence=['Finance_experiment_questionnaire_without_ML'], ), # =================== Error OutOfRangeNotification ============== # For testing # console: otree test baseline_Ex1 --export dict( name='baseline_Ex1', display_name='treat_', num_demo_participants=1, app_sequence=['Finance_experiment_without_ML_1'], ), # # # Here is a bug... # # console: otree test baseline_Ex2 --export # dict( # name='baseline_Ex2', # display_name='treat_', # num_demo_participants=1, # app_sequence=['Finance_experiment_without_ML_2'], # ), # Here is a bug... # console: otree test treat_with_ML --export dict( name='treat_with_ML', display_name='treat_', num_demo_participants=1, app_sequence=['Finance_experiment_with_ML'], ), # dict( # name='guess_two_thirds', # display_name="Guess 2/3 of the Average", # num_demo_participants=3, # app_sequence=['guess_two_thirds', 'payment_info'], # ), # dict( # name='survey', # display_name='survey', # num_demo_participants=1, # app_sequence=['survey', 'payment_info'], # ), ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'EUR' 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)'), dict( name='finance', display_name='Financial Market', ), dict(name='live_demo_', display_name='Room for live demo'), ] 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 = '6lertt4wlb09zj@4wyuy-p-6)i$vh!ljwx&r9bti6kgw54k-h8' 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']), SESSION_TYPE_DEFAULTS = { 'money_per_point': 0.01, 'demo_enabled': True, 'fixed_pay': 10.00, # this is payment currency (not points) 'num_bots': 12, 'doc': "", 'group_by_arrival_time': False, # 'Finance_settings': { # 'keywords': ['easy', 'bonus', 'choice', 'study'], # 'title': 'Title for your experiment', # 'description': 'Description for your experiment', # 'frame_height': 500, # 'landing_page_template': '/Finance_experiment_questionnaire/templates/Finance_experiment_questionnaire.html', # }, # 'mturk_sandbox': True, }