def _psd_func(epoch, noverlap, nfft, fs, freq_mask, func):
 return func(epoch, fs=fs, nperseg=nfft, noverlap=noverlap, nfft=nfft, window='hann')[2][..., freq_mask, :]

def _psd_func ( epoch , noverlap , nfft , fs , freq_mask , func ) : return func ( epoch , fs = fs , nperseg = nfft , noverlap = noverlap , nfft = nfft , window = 'hann' ) [ 2 ] [ ... , freq_mask , : ]
aux function .