def get_stride(self):
fftlength = float(self.args.secpfft)<EOL>overlap = fftlength * self.args.overlap<EOL>stride = fftlength - overlap<EOL>nfft = self.duration / stride  <EOL>ffps = int(nfft / (self.width * <NUM_LIT>))  <EOL>if ffps > <NUM_LIT:3>:<EOL><INDENT>return max(<NUM_LIT:2> * fftlength, ffps * stride + fftlength - <NUM_LIT:1>)<EOL><DEDENT>return None<EOL>
Calculate the stride for the spectrogram

        This method returns the stride as a `float`, or `None` to indicate
        selected usage of `TimeSeries.spectrogram2`.