Grouping by arrival time
group_by_arrival_time = True¶
We can group participants by arrival time by setting the attribute
group_by_arrival_time = True directly under a
Things to consider
group_by_arrival_timeis defined on
pages.pyunder a page class, unlike previous matching commands.
group_by_arrival_timecopies the group structure to future rounds. If a group is rematched, the value is overwritten.
group_by_arrival_timeworks only if the
WaitPageis the first page in the app
You can use
is_displayedto keep the group structure in the first round only (but every player should see the page)
class GroupPage(WaitPage): group_by_arrival_time = True def is_displayed(self): return self.round_number == 1
group_by_arrival_time = Trueall players will be initially in the same group when
id_in_groupis not assigned in order participants arrive
id_in_subsessionis not necessarily goes from 1 to number of groups. In each grouping a new number is created.