from os import environ SESSION_CONFIGS = [ dict( name='oneshotDisasterToTreasure', app_sequence=['instructions', 'quiz', 'oneshotDisaster', 'last_page'], num_demo_participants=10, ), dict( name='noquiz', app_sequence=['instructions', 'oneshotDisaster', 'last_page'], num_demo_participants=10, n_per_group=4, n_groups=2, ), dict( name='oneshotTreasureToDisaster', app_sequence=['instructions', 'quiz', 'oneshotDisaster', 'last_page'], num_demo_participants=8, # param_setting="rare_treasure", p1_tails = 0, p2_tails = -5, p1_left = -10, p1_left_prob = 0.95, p1_left_otherwise = 100, p2_left = 5, p1_right = -5, p2_right = 10, stage2_p1_tails=0, stage2_p2_tails=-5, stage2_p1_left =5, stage2_p1_left_prob=0.9, stage2_p1_left_otherwise=-100, stage2_p2_left=5, stage2_p1_right=-5, stage2_p2_right=10, ), ] ROOMS = [ dict( name='econ_lab', display_name='Economic Experiment' ), ] # 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.02, participation_fee=0.00, n_per_group=8, n_groups=2, doc="", timeout_seconds=10, max_timeouts=3, endowment=100, waittime_wage=6, p1_tails=0, p2_tails=-5, p1_left =5, p1_left_prob=0.9, p1_left_otherwise=-100, p2_left=5, p1_right=-5, p2_right=10, stage2_p1_tails = 0, stage2_p2_tails = -5, stage2_p1_left = -10, stage2_p1_left_prob = 0.95, stage2_p1_left_otherwise = 100, stage2_p2_left = 5, stage2_p1_right = -5, stage2_p2_right = 10, round_1_wait_time=600, round_n_wait_time=30, expected_wait_time=60*5, # dropped variables: min_group_size = 4, single_wait_time=1, ) PARTICIPANT_FIELDS = [ 'wait_page_arrival', 'prev_partner', 'pid', 'grupp', 'player_role', 'num_timeouts', 'dropped_tails', 'tot_wait_time', 'quiz_done', 'game_stage', 'round_payoff', 'full_experiment', ] SESSION_FIELDS = [ 'enough_passed', 'actions', 'players_per_role', 'groups', 'group_members', 'waiting_players', ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'GBP' USE_POINTS = True 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 = '6808864933816'