from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'fc_second_judgement' players_per_group = None num_rounds = 10 #ACHTUNG Rundenzahl auch in fc_welcome bei p.participant.vars['number_products'] ändern! class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): treatment = models.StringField() product_id = models.IntegerField() mu = models.IntegerField() sigma = models.IntegerField() initial_judgement = models.IntegerField(min=1, max=3000) second_judgement = models.IntegerField(min=1, max=3000) algorithm_advice = models.IntegerField() actual_demand = models.IntegerField() forecast_error = models.FloatField() total_forecast_error = models.FloatField() total_forecast_error_mse = models.FloatField() weight_on_advice = models.FloatField() weight_on_advice_winsor = models.FloatField() total_weight_on_advice = models.FloatField() total_weight_on_advice_winsor = models.FloatField()