Skip to content

Commit

Permalink
Saving noise levels
Browse files Browse the repository at this point in the history
  • Loading branch information
yger committed Dec 27, 2023
1 parent 9f24c15 commit 1863308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spikeinterface/preprocessing/silence_periods.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class SilencedPeriodsRecording(BasePreprocessor):
name = "silence_periods"

def __init__(self, recording, list_periods, mode="zeros", **random_chunk_kwargs):
import scipy.interpolate

available_modes = ("zeros", "noise")
num_seg = recording.get_num_segments()
Expand Down Expand Up @@ -71,6 +70,7 @@ def __init__(self, recording, list_periods, mode="zeros", **random_chunk_kwargs)
else:
noise_levels = None

self.noise_levels = noise_levels
BasePreprocessor.__init__(self, recording)
for seg_index, parent_segment in enumerate(recording._recording_segments):
periods = list_periods[seg_index]
Expand All @@ -80,7 +80,7 @@ def __init__(self, recording, list_periods, mode="zeros", **random_chunk_kwargs)
self.add_recording_segment(rec_segment)

self._kwargs = dict(
recording=recording.to_dict(), list_periods=list_periods, mode=mode, noise_levels=noise_levels
recording=recording, list_periods=list_periods, mode=mode, noise_levels=noise_levels
)


Expand Down

0 comments on commit 1863308

Please sign in to comment.