【发布时间】:2019-09-12 08:33:53
【问题描述】:
我已经从 EEG 信号表中构建了一个矩阵,并从该矩阵中导出了一个数组。数组是 shape(4097*100) 但是当我在数组 stockwell 变换函数中传递这个数组时,我得到一个错误:元组索引超出范围
#data1 = np.asarray(matrix)
matrix.shape (4097, 100)
tfr = tfr_array_stockwell(matrix,173)
IndexError Traceback (most recent call last) <ipython-input-78-abab5d5223f4> in <module>
1 #data1 = np.asarray(matrix)
2
----> 3 tfr = tfr_array_stockwell(matrix,173)
~/.local/lib/python3.6/site-packages/mne/time_frequency/_stockwell.py in tfr_array_stockwell(data, sfreq, fmin, fmax, n_fft, width, decim, return_itc, n_jobs)
170 """
171 n_epochs, n_channels = data.shape[:2]
--> 172 n_out = data.shape[2] // decim + bool(data.shape[2] % decim)
173 data, n_fft_, zero_pad = _check_input_st(data, n_fft)
174
IndexError: 元组索引超出范围
【问题讨论】:
标签: python numpy machine-learning signal-processing