def _check_nfft(n, n_fft, n_overlap):
 n_fft = (n if (n_fft > n) else n_fft)
 n_overlap = ((n_fft - 1) if (n_overlap >= n_fft) else n_overlap)
 return (n_fft, n_overlap)

def _check_nfft ( n , n_fft , n_overlap ) : n_fft = ( n if ( n_fft > n ) else n_fft ) n_overlap = ( ( n_fft - 1 ) if ( n_overlap >= n_fft ) else n_overlap ) return ( n_fft , n_overlap )
helper to make sure n_fft and n_overlap make sense .