spiketools.measures.collections.find_empty_ranges

spiketools.measures.collections.find_empty_ranges(bin_emptiness, bins, time_range=None)[source]

Find empty time ranges based on time bin emptiness for a collection of recorded neurons.

Parameters:
bin_emptiness1d array

Boolean array indicating which bins are empty across all neurons.

binsfloat or 1d array

The binning to apply to the spiking data. If float, the time length of each bin. If array, precomputed bin definitions.

time_rangelist of [float, float], optional

Time range, in seconds, to use to check for empty time ranges. Only used if bins is a float.

Returns:
empty_rangeslist of list of float

List of ranges indicating time ranges with no spiking across all neurons.