apply_unit_mask_#

core.transforms.apply_unit_mask_(data, mask)[source]#

Mask units and corresponding spikes given a boolean mask (in-place).

Parameters:
  • data (Data) – The data object to apply the unit mask to

  • mask (ndarray) – The mask (boolean numpy array). True means that unit is preserved.

Return type:

Data

Returns:

The same data object as the input. This is an inplace operation