We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0036b0f commit 9e9687fCopy full SHA for 9e9687f
1 file changed
src/spikeinterface/widgets/traces.py
@@ -126,6 +126,11 @@ def __init__(
126
else:
127
channel_locations = None
128
129
+ if segment_index is None:
130
+ if rec0.get_num_segments() != 1:
131
+ raise ValueError('You must provide "segment_index" for multisegment recordings.')
132
+ segment_index = 0
133
+
134
if not rec0.has_time_vector(segment_index=segment_index):
135
times = None
136
@@ -135,11 +140,6 @@ def __init__(
140
141
layer_keys = list(recordings.keys())
137
142
138
- if segment_index is None:
139
- if rec0.get_num_segments() != 1:
- raise ValueError('You must provide "segment_index" for multisegment recordings.')
- segment_index = 0
-
143
fs = rec0.get_sampling_frequency()
144
if time_range is None:
145
time_range = (t_start, t_start + 1.0)
0 commit comments