Skip to content

Commit

Permalink
Fix kwargs in silence periods
Browse files Browse the repository at this point in the history
  • Loading branch information
yger committed Nov 29, 2024
1 parent 853d8a4 commit b0e7b1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/spikeinterface/preprocessing/silence_periods.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ def __init__(self, recording, list_periods, mode="zeros", noise_levels=None, see
rec_segment = SilencedPeriodsRecordingSegment(parent_segment, periods, mode, noise_generator, seg_index)
self.add_recording_segment(rec_segment)

self._kwargs = dict(recording=recording, list_periods=list_periods, mode=mode, noise_generator=noise_generator)
self._kwargs = dict(recording=recording,
list_periods=list_periods,
mode=mode,
noise_levels=noise_levels,
seed=seed,
random_chunk_kwargs=random_chunk_kwargs)


class SilencedPeriodsRecordingSegment(BasePreprocessorSegment):
Expand Down

0 comments on commit b0e7b1c

Please sign in to comment.