torch_brain.utils#

isin_interval

Check if timestamps are in any of the intervals in the Interval object.

np_string_prefix

Adds a string prefix to each element of a numpy string array.

bin_spikes

Bins spikes into time bins of size bin_size.