from os import environ # the environment variable OTREE_PRODUCTION controls whether Django runs in # DEBUG mode. If OTREE_PRODUCTION==1, then DEBUG=False if environ.get('OTREE_PRODUCTION') not in {None, '', '0'}: APPS_DEBUG = False else: APPS_DEBUG = True # DEBUG = False # setting for integration with AWS Mturk AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY') Qid_qual = '3RM888DJP83NA9MT64121KG66XX2F1' # Qualification of being able to participate an experiment at a specific time Qid_preferences = '3KVW4MB3P584GRBMDJDG682UC8SXJD' # Qualification ID of Preferences Qid_games = '3T04ZEB6XS3KDFO8D7H8LQ8RTR95AQ' # Qualification ID of Preferences Qid_coopetition = '355NDHMUE4408REV3XQ8DXPSH6SCF1' # Qualification ID of Coopetition Qid_games = '3T04ZEB6XS3KDFO8D7H8LQ8RTR95AQ' # Qualification ID of Coopetition Qid_qual_sandbox = '39GW9SGGAEVYK6G7KXZV3IVP28GROX' # Qualification of being able to participate an experiment at a specific time Qid_coopetition_sandbox = '3KPASCSMA0FIAKFOHBY5SS3J0R98H3' Qid_preferences_sandbox = '3F97VQZTZ52G8HM1KEZAOKL8XI1HUS' Qid_games_sandbox = '38CFB6RWNQR7NMC9VPCCXY3J39IVK9' ## the following are quanflication from Christos's account Qid_qual = '3LPLP7F84UDE10UTP7UX1ZEWM0PGP5' # Qualification of being able to participate an experiment at a specific time Qid_games = '3D6XXPFXWWIM0E5B6YYVKQJ2CAQSXN' # Qualification ID of Preferences Qid_qual_sandbox = '39SVKZ8TS384HUQ2S0M8X3UZIT3X8N' # Qualification of being able to participate an experiment at a specific time Qid_games_sandbox = '3VQGW0Q635ZX3XJBTX04VTLQD6LUNG' Test_workerids = ['A2J47PTIYO03TZ','A38IOZBVC9FXFJ', # used in sandbox 'A3SKEW89V5S0DI', ] # for recaptcha RECAPTCHA_PUBLIC_KEY = environ.get('RECAPTCHA_PUBLIC_KEY', '') RECAPTCHA_PRIVATE_KEY = environ.get('RECAPTCHA_PRIVATE_KEY', '') EXTENSION_APPS = [ 'captcha', ] SESSION_CONFIGS = [ # { # 'name': 'ravens', # 'display_name': "Raven's Progressive Matrices", # 'ravens_payoff_per_question': 15, # points for each correct answer # 'num_demo_participants': 4, # 'app_sequence': [ # 'ravens_lite', # ], # }, { 'name': 'mturk_recruitment', 'display_name': "Recruitment", # 'debug': True, # whether to check the validity of mturk id or not 'sandbox': APPS_DEBUG, ## DELETE THIS FOR REAL EXPERIMENT 'access_key_id': AWS_ACCESS_KEY_ID, 'secret_access_key': AWS_SECRET_ACCESS_KEY, 'Qid': Qid_qual, 'Qid_sandbox': Qid_qual_sandbox, 'num_demo_participants': 6, 'app_sequence': [ 'recruitment', ], }, { 'name': 'short_games_multi', 'display_name': "Repeated Game", ## ISO dates can be written with added hours, minutes, and seconds (YYYY-MM-DDTHH:MM:SSZ): ## Date and time is separated with a capital T. ## UTC time is defined with a capital letter Z. ## If you want to modify the time relative to UTC, remove the Z and add +HH:MM or -HH:MM instead: ## EST is -5 relative to UTC; EDT is -4 relative to UTC ## CET is UTC+1, CEST is UTC+2 'experiment_starting_time': "2024-02-14T19:00:00+01:00", 'matrix': True, ## representaiton of the game as payoff matrix (True) or payoff table (False) 'button': True, 'mturk': True, 'debug': APPS_DEBUG, 'sandbox': APPS_DEBUG, ## DELETE THIS FOR REAL EXPERIMENT 'access_key_id': AWS_ACCESS_KEY_ID, 'secret_access_key': AWS_SECRET_ACCESS_KEY, 'Qid': Qid_games, 'Qid_sandbox': Qid_games_sandbox, 'Qid_qual': Qid_qual, 'Qid_qual_sandbox': Qid_qual_sandbox, 'late_minutes_allowed': 6, # max time allowed for late arrival 'quiz_attempts': 5, # attempts allowed to pass the quiz 'matching_wait_minutes': 5, # waiting time duration after which participants are allowed to exit the study 'timeout_seconds': 60 + 5, # seconds given for reaching decisions; forced out otherwise 'quiz_minutes': 5, # time allowed to pass the quiz # 'raffle_bonus': 200, # bonus for raffle winner in each match (experimental currency) 'eet_scale': .7, # scaling of EET payoffs for saliency 'crt_payoff_per_question': 20, # points for each correct answer 'ravens_payoff_per_question': 15, # points for each correct answer 'participation_fee': 1.2, 'real_world_currency_per_point': 0.012, 'interaction_length': 116, # match length: 116 or 188 # 'continuation_prob': 0.995, # the largest possible random number that determines the continuation probability 'continuation_prob': 0.99, # the largest possible random number that determines the continuation probability # 'pmats': 'SD', # payoff matrices that are selected to be played - string means only one game; list loops over games # payoff matrices that are selected to be played. list then loops over; string then the same # 'pmats': ['PD2', 'CH', 'UM', 'SD2', 'SH', 'UL', 'PD', 'SH2', 'SD', 'BO'], # payoff matrices that are selected to be played. list then loops over; string then the same 'pmats': ['TC', 'BO','UM','SD', 'CO', 'SA', 'BO0'], # payoff matrices that are selected to be played. list then loops over; string then the same # 'pmats': ['BO','PD','SD','SH','CH','UL','UM','SH2','PD2','SD2'], # payoff matrices that are selected to be played. list then loops over; string then the same 'num_demo_participants': 4, 'app_sequence': [ 'consent', 'eet', 'game_quiz', 'repeated_game', 'survey_mturk', 'crt', 'ravens_lite', 'payment' ], 'doc': """ Lite version of Repeated Games """ }, { 'name': 'test', 'display_name': "EET test", 'eet_scale': .7, # scaling of EET payoffs for saliency 'participation_fee': 1.2, 'real_world_currency_per_point': 0.005, 'num_demo_participants': 4, 'app_sequence': [ 'consent', 'eet','set_ending_time' ,'payment','payment_simple' ], 'doc': """ Lite version of Repeated Games """ }, { 'name': 'asym_term_coordination_test', 'display_name': "Asymmetric games with first volutary termination - test", ## ISO dates can be written with added hours, minutes, and seconds (YYYY-MM-DDTHH:MM:SSZ): ## Date and time is separated with a capital T. ## UTC time is defined with a capital letter Z. ## If you want to modify the time relative to UTC, remove the Z and add +HH:MM or -HH:MM instead: ## EST is -5 relative to UTC; EDT is -4 relative to UTC ## CET is UTC+1, CEST is UTC+2 'experiment_starting_time': "2023-10-04T21:00:00+02:00", 'button': True, # button vs. radio button for submitting action 'mturk': True, 'debug': APPS_DEBUG, 'sandbox': APPS_DEBUG, ## DELETE THIS FOR REAL EXPERIMENT 'access_key_id': AWS_ACCESS_KEY_ID, 'secret_access_key': AWS_SECRET_ACCESS_KEY, 'Qid': Qid_games, 'Qid_sandbox': Qid_games_sandbox, 'Qid_qual': Qid_qual, 'Qid_qual_sandbox': Qid_qual_sandbox, 'late_minutes_allowed': 5, # max time allowed for late arrival 'quiz_attempts': 5, # attempts allowed to pass the quiz 'matching_wait_minutes': 5, # waiting time duration after which participants are allowed to exit the study 'timeout_seconds': 60 + 5, # seconds given for reaching decisions; forced out otherwise 'quiz_minutes': 5, # time allowed to pass the quiz # 'raffle_bonus': 200, # bonus for raffle winner in each match (experimental currency) 'eet_scale': .7, # scaling of EET payoffs for saliency 'crt_payoff_per_question': 20, # points for each correct answer 'ravens_payoff_per_question': 15, # points for each correct answer 'participation_fee': 1.2, 'real_world_currency_per_point': 0.005, # 'continuation_prob': 0.995, # the largest possible random number that determines the continuation probability # 'interaction_length': 188, # match length: 116 or 188 'continuation_prob': 0.99, # the largest possible random number that determines the continuation probability 'interaction_lengths': [111, 92], 'symmetric_game': True, 'voluntary_termination': True, 'distancing': False, # payoff matrices that are selected to be played - string means only one game; list loops over games 'num_demo_participants': 4, 'app_sequence': [ 'games_quiz', 'repeated_2games', 'payment' ], 'doc': """ Lite version of Repeated Games """ }, { 'name': 'sym_term_coordination', 'display_name': "Symmetric games with first volutary termination", ## ISO dates can be written with added hours, minutes, and seconds (YYYY-MM-DDTHH:MM:SSZ): ## Date and time is separated with a capital T. ## UTC time is defined with a capital letter Z. ## If you want to modify the time relative to UTC, remove the Z and add +HH:MM or -HH:MM instead: ## EST is -5 relative to UTC; EDT is -4 relative to UTC 'experiment_starting_time': "2023-10-04T21:00:00+02:00", 'button': True, # button vs. radio button for submitting action 'mturk': True, 'debug': APPS_DEBUG, 'sandbox': APPS_DEBUG, ## DELETE THIS FOR REAL EXPERIMENT 'access_key_id': AWS_ACCESS_KEY_ID, 'secret_access_key': AWS_SECRET_ACCESS_KEY, 'Qid': Qid_games, 'Qid_sandbox': Qid_games_sandbox, 'Qid_qual': Qid_qual, 'Qid_qual_sandbox': Qid_qual_sandbox, 'late_minutes_allowed': 5, # max time allowed for late arrival 'quiz_attempts': 5, # attempts allowed to pass the quiz 'matching_wait_minutes': 5, # waiting time duration after which participants are allowed to exit the study 'timeout_seconds': 60 + 5, # seconds given for reaching decisions; forced out otherwise 'quiz_minutes': 5, # time allowed to pass the quiz # 'raffle_bonus': 200, # bonus for raffle winner in each match (experimental currency) 'eet_scale': .7, # scaling of EET payoffs for saliency 'crt_payoff_per_question': 20, # points for each correct answer 'ravens_payoff_per_question': 15, # points for each correct answer 'participation_fee': 1.2, 'real_world_currency_per_point': 0.005, # 'continuation_prob': 0.995, # the largest possible random number that determines the continuation probability # 'interaction_length': 188, # match length: 116 or 188 'continuation_prob': 0.99, # the largest possible random number that determines the continuation probability 'interaction_lengths': [111,96], 'symmetric_game': True, 'volutary_termination': True, # payoff matrices that are selected to be played - string means only one game; list loops over games 'num_demo_participants': 4, 'app_sequence': [ 'consent', 'games_quiz', 'repeated_2games', 'payment_simple' ], 'doc': """ Lite version of Repeated Games """ }, { 'name': 'only_game', 'display_name': "Only Game", ## ISO dates can be written with added hours, minutes, and seconds (YYYY-MM-DDTHH:MM:SSZ): ## Date and time is separated with a capital T. ## UTC time is defined with a capital letter Z. ## If you want to modify the time relative to UTC, remove the Z and add +HH:MM or -HH:MM instead: ## EST is -5 relative to UTC; EDT is -4 relative to UTC 'experiment_starting_time': "2021-08-30T20:00:00+02:00", 'button': True, # button vs. radio button for submitting action 'mturk': True, 'debug': APPS_DEBUG, 'sandbox': APPS_DEBUG, ## DELETE THIS FOR REAL EXPERIMENT 'access_key_id': AWS_ACCESS_KEY_ID, 'secret_access_key': AWS_SECRET_ACCESS_KEY, 'Qid': Qid_games, 'Qid_sandbox': Qid_games_sandbox, 'Qid_qual': Qid_qual, 'Qid_qual_sandbox': Qid_qual_sandbox, 'late_minutes_allowed': 5, # max time allowed for late arrival 'quiz_attempts': 5, # attempts allowed to pass the quiz 'matching_wait_minutes': 5, # waiting time duration after which participants are allowed to exit the study 'timeout_seconds': 60 + 5, # seconds given for reaching decisions; forced out otherwise 'quiz_minutes': 5, # time allowed to pass the quiz # 'raffle_bonus': 200, # bonus for raffle winner in each match (experimental currency) 'eet_scale': .7, # scaling of EET payoffs for saliency 'crt_payoff_per_question': 20, # points for each correct answer 'ravens_payoff_per_question': 15, # points for each correct answer 'participation_fee': 1.2, 'real_world_currency_per_point': 0.012, # 'continuation_prob': 0.995, # the largest possible random number that determines the continuation probability # 'interaction_length': 188, # match length: 116 or 188 'continuation_prob': 0.99, # the largest possible random number that determines the continuation probability 'interaction_length': 116, # match length: 116 or 188 'pmats': 'CI', # payoff matrices that are selected to be played - string means only one game; list loops over games # 'pmats': ['BO','PD,'SD','PD','BO','SH','CH','CI','SH2','PD2','UL','UM','SD2], # payoff matrices that are selected to be played. list then loops over; string then the same 'num_demo_participants': 4, 'app_sequence': [ 'consent', 'game_quiz', 'repeated_game', 'payment_simple' ], 'doc': """ Lite version of Repeated Games """ }, { 'name': 'long_games_multi', 'display_name': "Long Games Multiple", 'experiment_starting_time': "2021-08-30T21:00:00+02:00", 'button': True, 'mturk': True, 'debug': APPS_DEBUG, 'sandbox': APPS_DEBUG, ## DELETE THIS FOR REAL EXPERIMENT 'access_key_id': AWS_ACCESS_KEY_ID, 'secret_access_key': AWS_SECRET_ACCESS_KEY, 'Qid': Qid_games, 'Qid_sandbox': Qid_games_sandbox, 'Qid_qual': Qid_qual, 'Qid_qual_sandbox': Qid_qual_sandbox, 'late_minutes_allowed': 5, # max time allowed for late arrival 'quiz_attempts': 5, # attempts allowed to pass the quiz 'matching_wait_minutes': 5, # waiting time duration after which participants are allowed to exit the study 'timeout_seconds': 60 + 5, # seconds given for reaching decisions; forced out otherwise 'quiz_minutes': 5, # time allowed to pass the quiz # 'raffle_bonus': 200, # bonus for raffle winner in each match (experimental currency) 'eet_scale': .7, # scaling of EET payoffs for saliency 'crt_payoff_per_question': 20, # points for each correct answer 'ravens_payoff_per_question': 15, # points for each correct answer 'participation_fee': 1.2, 'real_world_currency_per_point': 0.012, 'interaction_length': 188, # match length: 116 or 188 # 'continuation_prob': 0.995, # the largest possible random number that determines the continuation probability 'continuation_prob': 0.995, # the largest possible random number that determines the continuation probability # 'pmats': 'SD', # payoff matrices that are selected to be played - string means only one game; list loops over games 'pmats': [ 'SD2', 'SD2', 'SD2', 'SD2', 'SD2', 'PD2', 'SH2', 'SD2', 'PD2', 'SH2', 'SD2', 'PD2', 'SH2', 'SD2', 'PD2', 'SH2', 'SD2', 'PD2', 'SH2', 'SD2', 'PD2', 'SH2', 'SD2', 'PD2', 'SH2', 'SD2', 'PD2', 'SH2', ], # change to loop over for the final sessions? # payoff matrices that are selected to be played. list then loops over; string then the same # 'pmats': ['BO','PD','SD','PD','BO','SH','CH','CI','SH2','PD2','UL','UM','SD2'], # payoff matrices that are selected to be played. list then loops over; string then the same 'num_demo_participants': 4, 'app_sequence': [ 'consent', 'eet', 'game_quiz', 'repeated_game', 'survey_mturk', 'crt', 'ravens_lite', 'payment' ], 'doc': """ Lite version of Repeated Games """ }, { 'name': 'short_games', 'display_name': "Short Games", ## ISO dates can be written with added hours, minutes, and seconds (YYYY-MM-DDTHH:MM:SSZ): ## Date and time is separated with a capital T. ## UTC time is defined with a capital letter Z. ## If you want to modify the time relative to UTC, remove the Z and add +HH:MM or -HH:MM instead: ## EST is -5 relative to UTC; EDT is -4 relative to UTC 'experiment_starting_time': "2021-05-29T18:00:00+02:00", 'button': True, # button vs. radio button for submitting action 'mturk': True, 'sandbox': APPS_DEBUG, ## DELETE THIS FOR REAL EXPERIMENT 'access_key_id': AWS_ACCESS_KEY_ID, 'secret_access_key': AWS_SECRET_ACCESS_KEY, 'Qid': Qid_games, 'Qid_sandbox': Qid_games_sandbox, 'Qid_qual': Qid_qual, 'Qid_qual_sandbox': Qid_qual_sandbox, 'late_minutes_allowed': 5, # max time allowed for late arrival 'quiz_attempts': 5, # attempts allowed to pass the quiz 'matching_wait_minutes': 5, # waiting time duration after which participants are allowed to exit the study 'timeout_seconds': 60 + 5, # seconds given for reaching decisions; forced out otherwise 'quiz_minutes': 5, # time allowed to pass the quiz # 'raffle_bonus': 200, # bonus for raffle winner in each match (experimental currency) 'eet_scale': .7, # scaling of EET payoffs for saliency 'crt_payoff_per_question': 20, # points for each correct answer 'ravens_payoff_per_question': 15, # points for each correct answer 'participation_fee': 1.2, 'real_world_currency_per_point': 0.012, # 'continuation_prob': 0.995, # the largest possible random number that determines the continuation probability # 'interaction_length': 188, # match length: 116 or 188 'continuation_prob': 0.99, # the largest possible random number that determines the continuation probability 'interaction_length': 116, # match length: 116 or 188 'pmats': 'UM', # payoff matrices that are selected to be played - string means only one game; list loops over games # 'pmats': ['BO','PD,'SD','PD','BO','SH','CH','CI','SH2','PD2','UL','UM','SD2], # payoff matrices that are selected to be played. list then loops over; string then the same 'num_demo_participants': 4, 'app_sequence': [ 'consent', 'eet', 'game_quiz', 'repeated_game', 'survey_mturk', 'crt', 'ravens_lite', 'payment' ], 'doc': """ Lite version of Repeated Games """ }, { 'name': 'repeated_games_multiple_games2', 'display_name': "Multiple Repeated Games (PD2 SH2 SD2)", 'experiment_starting_time': "2021-05-30T22:00:00+02:00", 'button': True, 'mturk': True, 'debug': APPS_DEBUG, 'sandbox': APPS_DEBUG, ## DELETE THIS FOR REAL EXPERIMENT 'access_key_id': AWS_ACCESS_KEY_ID, 'secret_access_key': AWS_SECRET_ACCESS_KEY, 'Qid': Qid_games, 'Qid_sandbox': Qid_games_sandbox, 'Qid_qual': Qid_qual, 'Qid_qual_sandbox': Qid_qual_sandbox, 'late_minutes_allowed': 5, # max time allowed for late arrival 'quiz_attempts': 5, # attempts allowed to pass the quiz 'matching_wait_minutes': 5, # waiting time duration after which participants are allowed to exit the study 'timeout_seconds': 60 + 5, # seconds given for reaching decisions; forced out otherwise 'quiz_minutes': 5, # time allowed to pass the quiz # 'raffle_bonus': 200, # bonus for raffle winner in each match (experimental currency) 'eet_scale': .7, # scaling of EET payoffs for saliency 'crt_payoff_per_question': 20, # points for each correct answer 'ravens_payoff_per_question': 15, # points for each correct answer 'participation_fee': 1.2, 'real_world_currency_per_point': 0.012, 'interaction_length': 116, # match length: 116 or 188 # 'continuation_prob': 0.995, # the largest possible random number that determines the continuation probability 'continuation_prob': 0.99, # the largest possible random number that determines the continuation probability # 'pmats': 'SD', # payoff matrices that are selected to be played - string means only one game; list loops over games 'pmats': ['PD2', 'SH2', 'SD2', 'CH', 'UL','UM'], # payoff matrices that are selected to be played. list then loops over; string then the same # 'pmats': ['BO','PD','SD','PD','BO','SH','CH','CI','SH2','PD2','UL','UM','SD2'], # payoff matrices that are selected to be played. list then loops over; string then the same 'num_demo_participants': 4, 'app_sequence': [ 'consent', 'eet', 'game_quiz', 'repeated_game', 'survey_mturk', 'crt', 'ravens_lite', 'payment' ], 'doc': """ Lite version of Repeated Games """ }, { 'name': 'repeated_games_long', 'display_name': "Long Repeated Games Multi-Treatment", ## ISO dates can be written with added hours, minutes, and seconds (YYYY-MM-DDTHH:MM:SSZ): ## Date and time is separated with a capital T. ## UTC time is defined with a capital letter Z. ## If you want to modify the time relative to UTC, remove the Z and add +HH:MM or -HH:MM instead: ## EST is -5 relative to UTC; EDT is -4 relative to UTC 'experiment_starting_time': "2021-05-28T19:00:00+02:00", 'button': True, # button vs. radio button for submitting action 'mturk': True, 'debug': APPS_DEBUG, 'sandbox': APPS_DEBUG, ## DELETE THIS FOR REAL EXPERIMENT 'access_key_id': AWS_ACCESS_KEY_ID, 'secret_access_key': AWS_SECRET_ACCESS_KEY, 'Qid': Qid_games, 'Qid_sandbox': Qid_games_sandbox, 'Qid_qual': Qid_qual, 'Qid_qual_sandbox': Qid_qual_sandbox, 'late_minutes_allowed': 5, # max time allowed for late arrival 'quiz_attempts': 5, # attempts allowed to pass the quiz 'matching_wait_minutes': 5, # waiting time duration after which participants are allowed to exit the study 'timeout_seconds': 60 + 5, # seconds given for reaching decisions; forced out otherwise 'quiz_minutes': 5, # time allowed to pass the quiz # 'raffle_bonus': 200, # bonus for raffle winner in each match (experimental currency) 'eet_scale': .7, # scaling of EET payoffs for saliency 'crt_payoff_per_question': 20, # points for each correct answer 'ravens_payoff_per_question': 15, # points for each correct answer 'participation_fee': 1.2, 'real_world_currency_per_point': 0.012, 'continuation_prob': 0.995, # the largest possible random number that determines the continuation probability 'interaction_length': 188, # match length: 116 or 188 # 'continuation_prob': 0.99, # the largest possible random number that determines the continuation probability # 'interaction_length': 116, # match length: 116 or 188 # 'pmats': 'SD2', 'pmats': ['SH2', 'SD2'], # payoff matrices that are selected to be played - string means only one game; list loops over games # 'pmats': ['BO','PD,'SD','PD','BO','SH','CH','CI','SH2','PD2','UL','UM','SD2], # payoff matrices that are selected to be played. list then loops over; string then the same 'num_demo_participants': 4, 'app_sequence': [ 'consent', 'eet', 'game_quiz', 'repeated_game', 'survey_mturk', 'crt', 'ravens_lite', 'payment' ], 'doc': """ Lite version of Repeated Games """ }, { 'name': 'mturk_qual_hit', 'display_name': "Mturk Qualification Hit", ## ISO dates can be written with added hours, minutes, and seconds (YYYY-MM-DDTHH:MM:SSZ): ## Date and time is separated with a capital T. ## UTC time is defined with a capital letter Z. ## If you want to modify the time relative to UTC, remove the Z and add +HH:MM or -HH:MM instead: ## EST is -5 relative to UTC; EDT is -4 relative to UTC # 'experiment_starting_time': "2021-02-27T21:00:00+01:00", 'experiment_starting_time': "2021-05-28T19:00:00+02:00", # 'debug': True, # whether to check the validity of mturk id or not 'sandbox': APPS_DEBUG, ## DELETE THIS FOR REAL EXPERIMENT 'access_key_id': AWS_ACCESS_KEY_ID, 'secret_access_key': AWS_SECRET_ACCESS_KEY, 'Qid': Qid_qual, 'Qid_sandbox': Qid_qual_sandbox, 'num_demo_participants': 6, 'app_sequence': [ 'qualification' ], }, { 'name': 'repeated_games_lite', 'display_name': "Repeated Games Lite", ## ISO dates can be written with added hours, minutes, and seconds (YYYY-MM-DDTHH:MM:SSZ): ## Date and time is separated with a capital T. ## UTC time is defined with a capital letter Z. ## If you want to modify the time relative to UTC, remove the Z and add +HH:MM or -HH:MM instead: ## EST is -5 relative to UTC; EDT is -4 relative to UTC 'experiment_starting_time': "2021-05-28T20:00:00+02:00", 'button': True, # button vs. radio button for submitting action 'debug': False, 'mturk': True, 'sandbox': APPS_DEBUG, ## DELETE THIS FOR REAL EXPERIMENT 'access_key_id': AWS_ACCESS_KEY_ID, 'secret_access_key': AWS_SECRET_ACCESS_KEY, 'Qid': Qid_games, 'Qid_sandbox': Qid_games_sandbox, 'Qid_qual': Qid_qual, 'Qid_qual_sandbox': Qid_qual_sandbox, 'late_minutes_allowed': 5, # max time allowed for late arrival 'quiz_attempts': 5, # attempts allowed to pass the quiz 'matching_wait_minutes': 5, # waiting time duration after which participants are allowed to exit the study 'timeout_seconds': 60 + 5, # seconds given for reaching decisions; forced out otherwise 'quiz_minutes': 5, # time allowed to pass the quiz # 'raffle_bonus': 200, # bonus for raffle winner in each match (experimental currency) 'eet_scale': .7, # scaling of EET payoffs for saliency 'crt_payoff_per_question': 20, # points for each correct answer 'ravens_payoff_per_question': 15, # points for each correct answer 'participation_fee': 1.2, 'real_world_currency_per_point': 0.012, 'interaction_length': 116, # match length: 116 or 188 # 'continuation_prob': 0.995, # the largest possible random number that determines the continuation probability 'continuation_prob': 0.99, # the largest possible random number that determines the continuation probability 'pmats': 'SD2', # payoff matrices that are selected to be played - string means only one game; list loops over games # 'pmats': ['BO','PD,'SD','PD','BO','SH','CH','CI','SH2','PD2','UL','UM','SD2], # payoff matrices that are selected to be played. list then loops over; string then the same 'num_demo_participants': 4, 'app_sequence': [ 'consent', 'eet', 'game_quiz', 'repeated_game', 'survey_mturk', 'crt', 'ravens_lite', 'payment' ], 'doc': """ Lite version of Repeated Games """ }, ] # 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=0.00, doc="" ) # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, CAD, GBP, CHF, CNY, JPY # REAL_WORLD_CURRENCY_CODE = 'RMB ' REAL_WORLD_CURRENCY_CODE = '$' USE_POINTS = True POINTS_CUSTOM_NAME = 'Francs' REAL_WORLD_CURRENCY_DECIMAL_PLACES = 2 POINTS_DECIMAL_PLACES = 0 ROOMS = [ { 'name': 'q', 'display_name': 'Qual', }, { 'name': '1', 'display_name': 'Room 1', # 'participant_label_file': '_rooms/econ1.txt', }, { 'name': '2', 'display_name': 'Room 2', # 'participant_label_file': '_rooms/econ2.txt', }, { 'name': '3', 'display_name': 'Room 3', # 'participant_label_file': '_rooms/econ2.txt', }, { 'name': '4', 'display_name': 'Room 4', # 'participant_label_file': '_rooms/econ2.txt', }, dict( name='econ', display_name='econ', participant_label_file='_rooms/econ.txt', ), ] # AUTH_LEVEL: # this setting controls which parts of your site are freely accessible, and which are password protected: # - If it's not set (the default), then the whole site is freely accessible. # - If you are launching a study and want visitors to only be able to # play your app if you provided them with a start link, set it to STUDY. # - If you would like to put your site online in public demo mode where # anybody can play a demo version of your game, but not access the rest # of the admin interface, set it to DEMO. # for flexibility, you can set it in the environment variable OTREE_AUTH_LEVEL AUTH_LEVEL = environ.get('OTREE_AUTH_LEVEL') AUTH_LEVEL = 'STUDY' ADMIN_USERNAME = environ.get('OTREE_ADMIN_USERNAME') # 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. """ SECRET_KEY = '^pj7p=ng+g+ay66-!=54r4gxbct=b%hwbnzx61h7196*kbzs5o' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = [ 'otree', 'otreeutils', ]