from os import environ SESSION_CONFIGS = [ # dict( # name='informational_cost_DEVELOPMENT', # display_name='informational_cost_DEVELOPMENT', # app_sequence=['informational_cost'], # num_demo_participants=1, # weights=[1, 0, 0, 0], # ['baseline', 'det', 'salient', 'strategy_method'] # development=True # ), # dict( # name='informational_cost', # display_name='informational_cost', # app_sequence=['informational_cost'], # num_demo_participants=1, # weights=[1, 0, 0, 0], # ['baseline', 'det', 'salient', 'strategy_method'] # development=False # ), # dict( # name='informational_cost_DETERMINISTIC_DEVELOPMENT', # display_name='informational_cost_DETERMINISTIC_DEVELOPMENT', # app_sequence=['informational_cost'], # num_demo_participants=1, # weights=[0, 1, 0], # ['baseline', 'det', 'salient'] # development=True # ), # dict( # name='intro_DEVELOPMENT', # display_name='intro_DEVELOPMENT', # app_sequence=['intro'], # num_demo_participants=1, # weights=[1/2, 1/2, 0, 0], # ['baseline', 'det', 'salient', 'strategy_method'] # development=True # ), # dict( # name='intro', # display_name='intro', # app_sequence=['intro'], # num_demo_participants=1, # weights=[1/2, 1/2, 0, 0], # ['baseline', 'det', 'salient', 'strategy_method'] # development=False # ), # dict( # name='lottery', # display_name='Lottery', # app_sequence=['lottery'], # num_demo_participants=1, # weights=[1/2, 1/2, 0, 0], # ['baseline', 'det', 'salient', 'strategy_method'] # development=False # ), # dict( # name='lottery_DEVELOPMENT', # display_name='Lottery_DEVELOPMENT', # app_sequence=['lottery'], # num_demo_participants=1, # weights=[1/2, 1/2, 0, 0], # ['baseline', 'det', 'salient', 'strategy_method'] # development=True # ), dict( name='combined', display_name='Combined', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[1/3, 0, 1/3, 1/3, 0], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=False ), dict( name='combined_DEVELOPMENT', display_name='Combined_DEVELOPMENT', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[1/3, 0, 1/3, 1/3, 0], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=True ), dict( name='combined_two_comp', display_name='Combined Two Computers', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[0, 1/3, 1/3, 1/3, 0], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=False ), dict( name='combined_two_comp_DEVELOPMENT', display_name='Combined Two Computers DEVELOPMENT', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[0, 1/3, 1/3, 1/3, 0], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=True ), dict( name='combined_DETERMINISTIC_DEVELOPMENT', display_name='Combined_DETERMINISTIC_DEVELOPMENT', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[0, 1, 0, 0, 0], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=True ), dict( name='combined_DETERMINISTIC', display_name='combined_DETERMINISTIC', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[0, 1, 0, 0, 0], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=False ), dict( name='combined_BASELINE', display_name='combined_BASELINE', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[1, 0, 0, 0, 0], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=False ), dict( name='combined_BASELINE_DEVELOPMENT', display_name='combined_BASELINE_DEVELOPMENT', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[1, 0, 0, 0, 0], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=True ), dict( name='combined_SALIENT', display_name='combined_SALIENT', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[0, 0, 1, 0, 0], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=False ), dict( name='combined_SALIENT_DEVELOPMENT', display_name='combined_SALIENT_DEVELOPMENT', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[0, 0, 1, 0, 0], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=True ), dict( name='combined_STRATEGY_METHOD_DEVELOPMENT', display_name='combined_STRATEGY_METHOD_DEVELOPMENT', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[0, 0, 0, 1, 0], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=True ), dict( name='combined_STRATEGY_METHOD', display_name='combined_STRATEGY_METHOD', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[0, 0, 0, 1, 0], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=False ), dict( name='combined_PLAN', display_name='combined_PLAN', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[0, 0, 0, 0, 1], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=False ), dict( name='combined_PLAN_DEVELOPMENT', display_name='combined_PLAN_DEVELOPMENT', app_sequence=['intro', 'informational_cost', 'strategy_method', 'lottery'], num_demo_participants=1, weights=[0, 0, 0, 0, 1], # ['baseline', 'det', 'salient', 'strategy_method', 'plan'] development=True ) ] # 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.00, participation_fee=3, doc="" ) PARTICIPANT_FIELDS = ['finished', 'param_rounds', 'environment_choice', 'bonus_choices', 'compType', 'chosen_decisions', 'part1_payoffs', 'part2_payoffs', 'det', 'base', 'salient', 'strategy', 'plan', 'treatment', 'lottery_order', 'pool_choice'] SESSION_FIELDS = ['prolific_completion_url', 'parameterization', 'lottery_payoffs', 'lottery_det_payoffs'] # 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 = False 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 = """ """ SECRET_KEY = '5381840834363' OTREE_REST_KEY = 'failuresInContigentThinkingLandau2022'