def p2t_time(self, waveforms):
    '\n        The peak to trough time of a spike in ms\n\n        Parameters\n        ----------\n        cluster: int\n            the cluster whose waveforms are to be analysed\n\n        Returns\n        -------\n        p2t: float\n            The mean peak-to-trough time for the channel (electrode) that has\n            the strongest (highest amplitude) signal. Units are ms\n        '
    best_chan = np.argmax(np.max(np.mean(waveforms, 0), 1))
    tP = self.getParam(waveforms, param='tP')
    tT = self.getParam(waveforms, param='tT')
    mn_tP = np.mean(tP, 0)
    mn_tT = np.mean(tT, 0)
    p2t = np.abs((mn_tP[best_chan] - mn_tT[best_chan]))
    return (p2t * 1000)
The peak to trough time of a spike in ms

Parameters
----------
cluster: int
    the cluster whose waveforms are to be analysed

Returns
-------
p2t: float
    The mean peak-to-trough time for the channel (electrode) that has
    the strongest (highest amplitude) signal. Units are ms
def p2t_time(self, waveforms):
    '\n        The peak to trough time of a spike in ms\n\n        Parameters\n        ----------\n        cluster: int\n            the cluster whose waveforms are to be analysed\n\n        Returns\n        -------\n        p2t: float\n            The mean peak-to-trough time for the channel (electrode) that has\n            the strongest (highest amplitude) signal. Units are ms\n        '
    best_chan = np.argmax(np.max(np.mean(waveforms, 0), 1))
    tP = self.getParam(waveforms, param='tP')
    tT = self.getParam(waveforms, param='tT')
    mn_tP = np.mean(tP, 0)
    mn_tT = np.mean(tT, 0)
    p2t = np.abs((mn_tP[best_chan] - mn_tT[best_chan]))
    return (p2t * 1000)