pliers.stimuli.CompoundStim¶
- class pliers.stimuli.CompoundStim(elements)[source]¶
Bases:
object
A container for an arbitrary set of Stim elements.
- Parameters
elements (Stim or list) – a single Stim (of any type) or a list of elements.
- get_stim(type_, return_all=False)[source]¶
Returns component elements of the specified type.
- Parameters
- Returns
If return_all is True, a list of matching elements (or an empty list if no elements match). If return_all is False, returns the first matching Stim, or None if no elements match.