yasa.SWResults.get_mask#

SWResults.get_mask()[source]#

Return an array indicating for each sample in data if this sample is part of a detected event (1) or not (0).

Returns:
masknumpy.ndarray

Array of 0 and 1 with the same shape as data, where 1 indicates that the sample is part of a detected event.