def select_neurons_interval(self, neurons, T=[<NUM_LIT:0>, <NUM_LIT:1000>]):
s = []<EOL>for neuron in neurons:<EOL><INDENT>self.cursor.execute('<STR_LIT>'  % (T[<NUM_LIT:0>], T[<NUM_LIT:1>], neuron))<EOL>sel = self.cursor.fetchall()<EOL>spikes = np.array(sel).flatten()<EOL>s.append(spikes)<EOL><DEDENT>return s<EOL>
Get all spikes from neurons in a time interval T.


Parameters
----------
neurons : list
    network neuron indices
T : list
    Time interval.


Returns
----------
s : list
    Nested list with spike times.


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