from os import environ SESSION_CONFIGS = [ # dict( # name='GeneralInstructions', # display_name='General Instructions', # app_sequence=['GeneralInstructions'], # num_demo_participants=1 # ), # dict( # name='OtherProbabilities', # display_name='Self and Other Probabilities', # app_sequence=['OtherProbabilities'], # num_demo_participants=1 # ), # dict( # name='Rounds', # display_name='Rounds', # app_sequence=['Rounds', # 'Payoffs'], # num_demo_participants=1 # ), dict( name='Experiment', display_name='Experiment Complete', app_sequence=['GeneralInstructions', 'OtherProbabilities', 'Rounds', 'Payoffs'], num_demo_participants=3 ), dict( name='StrategyMethod', display_name='Instructions for Section 1', app_sequence=['strategymethod', 'Payoffs'], num_demo_participants=2, Init_pay=5, r_min=0, N_size=4, # this is the sample size n_marbles=5, # number of marbles in the boxes P_yellow=[0.6, 0.4], # yellow and green box respectively ), dict( name='Strategies', display_name='Sections 1 and 2', app_sequence=['StrategyTables_bs_design', 'WTP_info_bs_design', 'Payoffs'], num_demo_participants=2, Init_pay=5, r_min=0, N_size=4, # this is the sample size n_marbles=5, # number of marbles in the boxes P_yellow=[0.60, 0.40], # yellow and green box respectively ), dict( name='Survey', display_name='Surveys', app_sequence=['CRTSurvey', 'Payoffs'], num_demo_participants=4, Init_pay=0, ), dict( name='StrategyMethodExperiment', display_name='Strategy Method Experiment', app_sequence=['strategymethod', 'StrategyTables', 'WTP_info', 'CRTSurvey', 'Payoffs'], num_demo_participants=22, Init_pay=5, r_min=0, N_size=4, # this is the sample size n_marbles=5, # number of marbles in the boxes P_yellow=[0.60, 0.40], # yellow and green box respectively P_Yellow_Box=0.90, P_Yellow_Other=0.20, ), dict( name='StrategyMethodExperiment_Control', display_name='Strategy Method Experiment_Control', app_sequence=['strategymethod', 'StrategyTables_Control', 'WTP_info', 'CRTSurvey', 'Payoffs'], num_demo_participants=22, Init_pay=5, r_min=0, N_size=4, # this is the sample size n_marbles=5, # number of marbles in the boxes P_yellow=[0.60, 0.40], # yellow and green box respectively P_Yellow_Box=0.90, P_Yellow_Other=0.20, ), dict( name='StrategyMethodBetweenSubjects', display_name='Between-Subject Design', app_sequence=['strategymethod_bs_design', 'StrategyTables_bs_design', 'WTP_info_bs_design', 'CRTSurvey', 'Payoffs'], num_demo_participants=22, Init_pay=5, r_min=0, N_size=4, # this is the sample size n_marbles=5, # number of marbles in the boxes P_yellow=[0.60, 0.40], # yellow and green box respectively P_Yellow_Box=0.90, P_Yellow_Other=0.20, ), ] # 5 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=5.00, doc="" ) PARTICIPANT_FIELDS = ['conditions_rounds', 'correct_guess_50', 'correct_guess'] SESSION_FIELDS = [] # 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 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') ADMIN_PASSWORD = 'Experiment22!' DEMO_PAGE_INTRO_HTML = """ Here are some oTree games. """ SECRET_KEY = '9278827010710' INSTALLED_APPS = ['otree']