slice_to_test function

(Shortest import: from brian2.synapses.synapses import slice_to_test)

brian2.synapses.synapses.slice_to_test(x)[source]

Returns a testing function corresponding to whether an index is in slice x. x can also be an int.