simrun
❭ utils
❭ select_cells_that_spike_in_interval
select_cells_that_spike_in_interval¶
- simrun.utils.select_cells_that_spike_in_interval(sa, tmin, tmax, set_index=['synapse_ID', 'synapse_type'])¶
Select cells whose synapses were active in a given time interval.
- Parameters:¶
sa (pd.DataFrame) – The Synapse activation DataFrame.
tmin (float) – The start time of the interval.
tmax (float) – The end time of the interval.
set_index (list) – The index of the DataFrame. Default is
['synapse\_ID', 'synapse\_type']
.
- Returns:¶
A list of tuples containing the synapse ID and the synapse type of the cells that spike in the interval.
- Return type:¶
list