Pass the spikes array as a return value of the threshold code object