eelbrain.Sensor.intersect

Sensor.intersect(self, dim, check_dims=True)

Create a Sensor dimension that is the intersection with dim

Parameters:
dim : Sensor

Sensor dimension to intersect with.

check_dims : bool

Check dimensions for consistency (e.g., channel locations). Default is True. Set to False to intersect channels based on names only and ignore mismatch between locations for channels with the same name.

Returns:
sensor : Sensor

The intersection with dim (returns itself if dim and self are equal)