eelbrain.Interaction.index_opt

Interaction.index_opt(self, cell)

Find an optimized index for a given cell.

Returns:
index : slice | array

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