diff --git a/src/spikeinterface/preprocessing/silence_periods.py b/src/spikeinterface/preprocessing/silence_periods.py index 03af564080..a97c1ffa50 100644 --- a/src/spikeinterface/preprocessing/silence_periods.py +++ b/src/spikeinterface/preprocessing/silence_periods.py @@ -40,7 +40,6 @@ class SilencedPeriodsRecording(BasePreprocessor): name = "silence_periods" def __init__(self, recording, list_periods, mode="zeros", **random_chunk_kwargs): - available_modes = ("zeros", "noise") num_seg = recording.get_num_segments() @@ -79,9 +78,7 @@ def __init__(self, recording, list_periods, mode="zeros", **random_chunk_kwargs) rec_segment = SilencedPeriodsRecordingSegment(parent_segment, periods, mode, noise_levels) self.add_recording_segment(rec_segment) - self._kwargs = dict( - recording=recording, list_periods=list_periods, mode=mode, noise_levels=noise_levels - ) + self._kwargs = dict(recording=recording, list_periods=list_periods, mode=mode, noise_levels=noise_levels) class SilencedPeriodsRecordingSegment(BasePreprocessorSegment):