from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) doc = 'For fund managers' class Constants(BaseConstants): name_in_url = 'Decisions' players_per_group = None num_rounds = 1 rate = 0.025 Standard_deviation_low = 0 Average_low = 0.025 Basic_wage = 2000 Standard_deviation_high = 0.302 Average_high = 0.11 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Risk = models.FloatField( label='Percentage of wealth(in %)that you want to invest in the stock index in this period(min: 0%; max: 200%)', max=200, min=0, ) Results_high = models.FloatField() Debt = models.FloatField() a = models.FloatField() total = models.FloatField() payoffs = models.FloatField() Results_low = models.FloatField() Risk_copy = models.FloatField() Risk_free_percent = models.FloatField() b = models.FloatField() Choice1 = models.BooleanField( choices=[[True, 'Accept this lottery'], [False, 'Reject this lottery']], widget=widgets.RadioSelect, ) Choice2 = models.BooleanField( choices=[[True, 'Accept this lottery'], [False, 'Reject this lottery']], widget=widgets.RadioSelect, ) Choice3 = models.BooleanField( choices=[[True, 'Accept this lottery'], [False, 'Reject this lottery']], widget=widgets.RadioSelect, ) Choice4 = models.BooleanField( choices=[[True, 'Accept this lottery'], [False, 'Reject this lottery']], widget=widgets.RadioSelect, ) Choice5 = models.BooleanField( choices=[[True, 'Accept this lottery'], [False, 'Reject this lottery']], widget=widgets.RadioSelect, ) Choice6 = models.BooleanField( choices=[[True, 'Accept this lottery'], [False, 'Reject this lottery']], widget=widgets.RadioSelect, ) n = models.IntegerField() n2 = models.IntegerField() deletedCount = models.IntegerField() payoff_bomb = models.FloatField() payoff_decision = models.FloatField() Bomb_location = models.IntegerField() payoff_questionnaire = models.FloatField()