Skip to content

Commit 9d48112

Browse files
committed
Fix broken example in Group docs
1 parent 23e2c65 commit 9d48112

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/grouping.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Each :class:`ChannelIndex` also contains the list of channels on which that neur
111111
block.channel_indexes.extend((chx0, chx1))
112112

113113

114-
Using :class:`ChannelView` and :class`Group`::
114+
Using :class:`ChannelView` and :class:`Group`::
115115

116116
import numpy as np
117117
from quantities import ms, mV, kHz
@@ -136,7 +136,7 @@ Using :class:`ChannelView` and :class`Group`::
136136
# assign each spiketrain to a neuron (now using Group)
137137
units = []
138138
for i, spiketrain in enumerate(spiketrains):
139-
unit = Group(spiketrain, name=f"Neuron #{i + 1}")
139+
unit = Group([spiketrain], name=f"Neuron #{i + 1}")
140140
units.append(unit)
141141

142142
# create a ChannelView of the signal for each unit, to show which channels the spikes come from
@@ -150,4 +150,4 @@ Using :class:`ChannelView` and :class`Group`::
150150

151151

152152
Now each putative neuron is represented by a :class:`Group` containing the spiktrains of that neuron
153-
and a view of the signal selecting only those channels from which the spikes were obtained.
153+
and a view of the signal selecting only those channels from which the spikes were obtained.

0 commit comments

Comments
 (0)