@@ -113,7 +113,7 @@ def _compute_metrics_array(raw, fs, h):
113113 detections = spikes .detection (data = destripe .T , fs = fs , h = h , detect_threshold = SPIKE_THRESHOLD_UV * 1e-6 )
114114 spike_rate = np .bincount (detections .trace , minlength = raw .shape [0 ]).astype (np .float32 )
115115 channel_labels , _ = voltage .detect_bad_channels (raw , fs = fs )
116- _ , psd = signal .welch (destripe , fs = fs , window = 'hanning ' , nperseg = WELCH_WIN_LENGTH_SAMPLES ,
116+ _ , psd = signal .welch (destripe , fs = fs , window = 'hann ' , nperseg = WELCH_WIN_LENGTH_SAMPLES ,
117117 detrend = 'constant' , return_onesided = True , scaling = 'density' , axis = - 1 )
118118 return rms_raw , rms_pre_proc , spike_rate , channel_labels , psd
119119
@@ -220,7 +220,7 @@ def rmsmap(sglx):
220220 if last - first < WELCH_WIN_LENGTH_SAMPLES :
221221 continue
222222 # compute a smoothed spectrum using welch method
223- _ , w = signal .welch (D , fs = sglx .fs , window = 'hanning ' , nperseg = WELCH_WIN_LENGTH_SAMPLES ,
223+ _ , w = signal .welch (D , fs = sglx .fs , window = 'hann ' , nperseg = WELCH_WIN_LENGTH_SAMPLES ,
224224 detrend = 'constant' , return_onesided = True , scaling = 'density' , axis = - 1 )
225225 win ['spectral_density' ] += w .T
226226 # print at least every 20 windows
0 commit comments