@@ -673,7 +673,7 @@ def test_psd_window_hanning_detrend_linear(self):
673
673
def test_psd_window_flattop (self ):
674
674
# flattop window
675
675
# adaption from https://github.com/scipy/scipy/blob/v1.10.0/scipy/signal/windows/_windows.py#L562-L622
676
- if self .NFFT_density_real <= 1 :
676
+ if self .NFFT_density_real <= 1 :
677
677
win = np .ones (self .NFFT_density_real )
678
678
else :
679
679
a = [0.21557895 , 0.41663158 , 0.277263158 , 0.083578947 , 0.006947368 ]
@@ -695,18 +695,18 @@ def test_psd_window_flattop(self):
695
695
noverlap = 0 ,
696
696
sides = self .sides ,
697
697
window = win )
698
- spec_b , fsp_b = mlab .psd (x = self .y * win ,
699
- NFFT = self .NFFT_density ,
700
- Fs = self .Fs ,
701
- noverlap = 0 ,
702
- sides = self .sides ,
703
- window = mlab .window_none )
698
+ # spec_b, fsp_b = mlab.psd(x=self.y * win,
699
+ # NFFT=self.NFFT_density,
700
+ # Fs=self.Fs,
701
+ # noverlap=0,
702
+ # sides=self.sides,
703
+ # window=mlab.window_none)
704
704
assert_allclose (spec * win .sum ()** 2 ,
705
705
spec_a * self .Fs * (win ** 2 ).sum (),
706
706
atol = 1e-08 )
707
- assert_allclose (spec * win .sum ()** 2 ,
708
- spec_b * self .Fs * self .NFFT_density ,
709
- atol = 1e-08 )
707
+ # assert_allclose(spec*win.sum()**2,
708
+ # spec_b*self.Fs*self.NFFT_density,
709
+ # atol=1e-08)
710
710
711
711
def test_psd_windowarray (self ):
712
712
freqs = self .freqs_density
0 commit comments