@@ -65,8 +65,8 @@ the requested unit_ids).
6565
6666 # in this case we are making a monosegment sorting
6767 # we have four spikes that are spread among two neurons
68- my_sorting = NumpySorting.from_times_labels (
69- times_list = [
68+ my_sorting = NumpySorting.from_samples_and_labels (
69+ samples_list = [
7070 np.array([1000 ,12000 ,15000 ,22000 ]) # Note these are samples/frames not times in seconds
7171 ],
7272 labels_list = [
@@ -120,7 +120,7 @@ Loading multisegment data into a :code:`Sorting`
120120One of the great advantages of SpikeInterface :code: `Sorting ` objects is that they can also handle
121121multisegment recordings and sortings (e.g. you have a baseline, stimulus, post-stimulus). The
122122exact same machinery can be used to generate your sorting, but in this case we do a list of arrays instead of
123- a single list. Let's go through one example for using :code: `from_times_labels `:
123+ a single list. Let's go through one example for using :code: `from_samples_and_labels `:
124124
125125.. code-block :: python
126126
@@ -130,8 +130,8 @@ a single list. Let's go through one example for using :code:`from_times_labels`:
130130 # in this case we are making three-segment sorting
131131 # we have four spikes that are spread among two neurons
132132 # in each segment
133- my_sorting = NumpySorting.from_times_labels (
134- times_list = [
133+ my_sorting = NumpySorting.from_samples_and_labels (
134+ samples_list = [
135135 np.array([1000 ,12000 ,15000 ,22000 ]),
136136 np.array([30000 ,33000 , 41000 , 47000 ]),
137137 np.array([50000 ,53000 ,64000 ,70000 ]),
0 commit comments