Skip to content

Commit 549d183

Browse files
committed
make diff simpler
1 parent c99c6a1 commit 549d183

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/spikeinterface/core/baserecording.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ class BaseRecordingSegment(BaseSegment):
898898
Abstract class representing a multichannel timeseries, or block of raw ephys traces
899899
"""
900900

901-
def __init__(self, sampling_frequency=None, t_start=None, time_vector=None, num_channels=None):
901+
def __init__(self, sampling_frequency=None, t_start=None, time_vector=None):
902902
# sampling_frequency and time_vector are exclusive
903903
if sampling_frequency is None:
904904
assert time_vector is not None, "Pass either 'sampling_frequency' or 'time_vector'"
@@ -910,7 +910,7 @@ def __init__(self, sampling_frequency=None, t_start=None, time_vector=None, num_
910910
self.sampling_frequency = sampling_frequency
911911
self.t_start = t_start
912912
self.time_vector = time_vector
913-
self._num_channels = num_channels
913+
self._num_channels = None
914914

915915
BaseSegment.__init__(self)
916916

src/spikeinterface/core/binaryrecordingextractor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,8 @@ def __del__(self):
172172

173173
class BinaryRecordingSegment(BaseRecordingSegment):
174174
def __init__(self, file_path, sampling_frequency, t_start, num_channels, dtype, time_axis, file_offset):
175-
BaseRecordingSegment.__init__(
176-
self, sampling_frequency=sampling_frequency, t_start=t_start, num_channels=num_channels
177-
)
175+
BaseRecordingSegment.__init__(self, sampling_frequency=sampling_frequency, t_start=t_start)
176+
self._num_channels = num_channels
178177
self.dtype = np.dtype(dtype)
179178
self.file_offset = file_offset
180179
self.time_axis = time_axis

0 commit comments

Comments
 (0)