nested

class NestedSampleableMixin

Bases: ABC

Mixin for nested sampleables (groups or datasets).

property identifiers: tuple[str | int | tuple[str | int, str | int], ...]

Returns the identifiers of the sampleables (groups, individuals or dyads).

abstract property individuals: tuple[str | int, ...] | tuple[tuple[str | int, str | int], ...]

Returns the identifiers of the individuals (str or int if group, tuple if dataset).

select(identifier)

Select a sampleable by identifier.

Parameters:

identifier (str | int | tuple[str | int, str | int]) – The sampleable to select.

Returns:

Selected sampleable.

Return type:

SampleableMixin

property target: Literal['individual', 'dyad']