The maskers module defines maskers, which are tools for iterating over recall sequences while screening out excluded output positions or transitions. The maskers also output a running list of which items that meet inclusion criteria that have not yet been recalled.

Iterating over output positions#

outputs_masker(pool_items, recall_items, ...)

Iterate over valid outputs.

Iterating over transitions#

transitions_masker(pool_items, recall_items, ...)

Iterate over transitions with masking.

sequences_masker(n_transitions, pool_items, ...)

Yield sequences of adjacent included transitions.

windows_masker(list_length, window_lags, ...)

Yield windows around previous items in the input list.