Closed jbengelsdorf closed 6 months ago
The source code is documented already. Mostly, I think the quota needs to be added to the API autosummary directive in docs/source/index.rst
. Maybe also some more examples and a narrative description could be nice.
The
SessionQuota
is the basic building block also for theListRandomizer
, meaning it does all the counting (but non of the randomizing). TheSessionQuota
will abort new sessions whenSessionQuota.count()
is called, and the required number of slots are finished, or if there are enough active sessions, such that the required number of slots may get filled. It behaves like the ListRandomizer in this regard.Therefore, the
SessionQuota
is a powerful tool and can be used, for instance, to achieve the collection of equally sized subpopulations within an experiment. For example, the collection of data from one student and one employee can be achieved by using this code:Unfortunately, as far as I can see, the
SessionQuota
is not described very prominently in the alfred3 documentation. Due to its versatile application possibilities, we should change this.