eelbrain.Interaction.index_opt

Interaction.index_opt(cell)

Find an optimized index for a given cell.

Returns:

index – If possible, a slice object is returned. Otherwise, an array of indices (as with e.index(cell)).

Return type:

slice | array