""" This file includes all available configuration options for the otime app. Modify this file to set all your preferences - also modify `templates/otime/Results.html` to your liking which will be displayed after all questions of all blocks have been answered. It's not recommended to edit any of the other files. Be sure to also check the README.md file! """ import random from .block import Block #: The total budget available for each choice TOTAL_BUDGET = 5 NUM_BLOCKS = 4 #: Set to True if you want blocks to be randomized in order RANDOMIZE_BLOCKS = False #: Set to True if the choices per question in a block should be visualized as a slider #: as opposed to single radio buttons VISUALIZE_CHOICES_AS_SLIDER = False #: The configuration for all blocks to be displayed to the user #: Note: #: - The given delays are treated as WEEKS where an initial delay of 0 means today. #: - The order of interest_rates given is the order in which they will be display, i.e. #: to change the order of display just change the order of values here """ Edit the number of choices and values to put in the blocks here """ block_order = [i for i in range(NUM_BLOCKS)] if RANDOMIZE_BLOCKS: random.shuffle(block_order) BLOCKS = [ Block( values=[5, 4, 3, 2], initial_payout_delay=0, initial_to_last_payout_delay=1, number_of_choices=6, decrease_rate=0.8, block_index= int(block_order[0]) ), Block( values=[5, 4, 3, 2], initial_payout_delay=0, initial_to_last_payout_delay=2, number_of_choices=6, decrease_rate=0.8, block_index= int(block_order[1]) ), Block( values=[5, 4, 3, 2], initial_payout_delay=1, initial_to_last_payout_delay=1, number_of_choices=6, decrease_rate=0.8, block_index= int(block_order[2]) ), Block( values=[5, 4, 3, 2], initial_payout_delay=1, initial_to_last_payout_delay=2, number_of_choices=6, decrease_rate=0.8, block_index= int(block_order[3]) ) ]