def select(self, neurons):
s = []<EOL>for neuron in neurons:<EOL><INDENT>self.cursor.execute('<STR_LIT>' % neuron)<EOL>sel = self.cursor.fetchall()<EOL>spikes = np.array(sel).flatten()<EOL>s.append(spikes)<EOL><DEDENT>return s<EOL>
Select spike trains.


Parameters
----------
neurons : numpy.ndarray or list
    Array of list of neurons.


Returns
-------
list
    List of numpy.ndarray objects containing spike times.


See also
--------
sqlite3.connect.cursor