from os import environ SESSION_CONFIGS = [ dict( name='rts', display_name="Risk-taking Strategies: Experiment", num_demo_participants=1, app_sequence=[ 'welcome', # App with welcome-information for between subjects 'generalExplain', # App with general explanations about risk 'basic', # Basic treatment decoloring 'path', # Path dependent decoloring 'rand', # Randomized decoloring 'basicWalking', # Normal walking task 'randWalking', # Walking task with card draw 'riskResolution' # Risk Resolution for between subject treatment ], min_time_on_page_instructions=0, # Set to 0 for testing min_time_on_page_feedback=0, time_after_wrong_comp = 5, # Penalty for wrong comp question in sec force_downloads = False, completionFee = 3.00, # Prolific completion fee endowment= 1.5, upTick = 0.25, upTick_Intro = 0.1, # Used for instructions and comp questions winProb = 50, costPerBall = 0.01, # Cost per ball in costly treatments min_time_in_modal = 0, min_time_on_page = 0, min_time_before_download = 10, # In seconds testing = True, studySelection = True, maxPartStudy = 40, # Number of maximum participants per study (separate prolific studies for male and female) dropoutTime = 4080, # 67 mins from Prolific Max Time + 1 min buffer ), ] PARTICIPANT_FIELDS = [ 'treatment', # Number of treatment in static info 'color', # Name of treatment color 'plotColor', # Name of treatment color for plotting/ drawing 'treatment_name', # Name of treatment 'password_verification', # Password for verification file 'winningSideDict', # Winning sides for coin tosses 'cardNumbersDict', # Card number assignment for card draws 'password_bonus', # Password for bonus file 'bonusFileDict', # Bonus file information 'bf', # Name of chosen bonus file (BonusFile723) 'bfNumber', # Number of chosen bonus file 'decoloring', # Submitted choice for decoloring task ## Walking Task Practice 'walkingPathTrial', # Path during walking task 'coinTossOutcomeTrial', # Entered coin toss outcome during walking task 'continuationDecTrial', # Decision during walking task 'chosenCardTrial', # Selected card during rand walking task 'cardOutcomeTrial', # Card outcome during rand walking task 'cardNumbersDictTrial', # Card number assignment for trial round ## Walking Task 'resolutionRound', # Round for walking task 'walkingPath', # Path during walking task 'coinTossOutcome', # Entered coin toss outcome during walking task 'continuationDec', # Decision during walking task 'chosenCard', # Selected card during rand walking task 'cardOutcome', # Card outcome during rand walking task ## Bonus payment 'chosenCardDecoloring', # Selected card during rand decoloring task resolution 'cardOutcomeDecoloring', # Outcome of card during rand decoloring task resolution 'payoffPath', # Path if bonus task = decoloring task 'coinTossOutcomeDecoloring', # Entered coin toss outcome if decoloring task = bonus task 'finalPayoff', # Payoff from the experiment ## End for timeout 'expiry', 'timeoutHappened', ## Demonstration 'demo' ] SESSION_FIELDS = [ 'studyIterator', 'dropouts', 'completes', 'actives', ] DEBUG = False #Disables DEBUG for the server # 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, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = True ROOMS = [] ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = 'testExp' DEMO_PAGE_INTRO_HTML = """""" SECRET_KEY = '3myw$@fpoa+fqic_sdw%w7q%cyu)#(0u7h5n%s9)qjjm50jpfp' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']