modulation.signal_utilities.chopping.mask_chop_segments

modulation.signal_utilities.chopping.mask_chop_segments(mask: Sequence, data: Sequence) Sequence[source]

discards rest of the data if vad is shorter than data

returns consecutive segments is where the mask is 1

Parameters
  • mask

  • data

Returns

Return type