You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError Traceback (most recent call last)
<ipython-input-19-4acaa3d0f7dd> in <module>
----> 1 spectrum = bartlett_method(wave, seg_length=seg_length, win_flag=False)
2 spectrum.hs[0] = 0
3 len(spectrum)
<ipython-input-18-0c3fecb9be50> in bartlett_method(wave, seg_length, win_flag)
14 # compute the root mean power (which is like an amplitude)
15 hs = np.sqrt(sum(psds) / len(psds))
---> 16 fs = spectrums[0].fs
17
18 # make a Spectrum with the mean amplitudes
TypeError: 'dict_values' object is not subscriptable
The text was updated successfully, but these errors were encountered:
tionebrr
changed the title
Input 19 of the code/voss.ipynb, Barlett Method function, fails with a type error
Input 18 of the code/voss.ipynb, the Barlett Method function, fails with a type error
Nov 26, 2019
The text was updated successfully, but these errors were encountered: