ValueError:无法将输入数组从形状(1382368)广播到形状(11058944)

时间:2018-09-07 07:41:50

标签: python-3.x export-to-csv european-data-format

我试图将EDF文件读取到Jupyter中,然后使用pyedflib.EdfReader(https://pyedflib.readthedocs.io/en/latest/)将其转换为CSV。根据我所做的文档

>>> import pyedflib
>>> import numpy as np
>>> f = pyedflib.EdfReader("data/test_generator.edf")
>>> n = f.signals_in_file
>>> signal_labels = f.getSignalLabels()
>>> sigbufs = np.zeros((n, f.getNSamples()[0]))
>>> for i in np.arange(n):
>>>     sigbufs[i, :] = f.readSignal(i)

并收到此错误

ValueError:无法将输入数组从形状(1382368)广播到形状(11058944)

`

0 个答案:

没有答案