I am finding a way to create a subject_number variable similar to the Subjects variable in zTree.
The main reason is to match computer station number with oTree participant number and also create variables based on their subject number flexibly.
Please note that the snippet :
labels = [1, 2, 3 , ...]
for player, label in zip(self.get_players(), labels):
player.participant.label = label
does not work because if work station 2 is empty, then label 2 wil be assigned to station 3.
It would also be nice to access the "subject number" variable, curretly, in the data, there is only P1, P2, etc. I am wondering how to create the subject variable based on that.