Hi all
I am writing a code about whether people would like to share risk. After making sharing decisions, people are asked about their beliefs of how many player in this session agree to share. Since player will be rewarded if their guess is close to the truth, thus I define a function like below
def Correct_a (subsession:Subsession):
players =
subsession.get_players()
action_a1= [p.Share_a for p in players]
belief_a1_avg = sum(action_a1_avg) / len(players)
subsession.Correct_Belief_a1 = round(belief_a1_avg, 1)
However, when I tried this coding it always shows "error type 500:got an unexpected keyword argument 'group'" even when the variable group showing nowhere in this function.
To debug, I even tried a sample version as below
def Correct_a (subsession:Subsession):
players = subsession.get_players()
However, the same error keeps showing. Does anyone knows what is going on here?
Best,
Dong