2017-04-07 23 views

回答

0

在我的情況,我能得到這個由我的數據轉換爲numpy的陣列工作。最近似乎有一些變化,其中您不能將單標量數組視爲索引數組。

我能夠特別是通過peak.py內編輯此得到這個工作對我來說,大約第34行

if isinstance(y, np.ndarray) and np.issubdtype(y.dtype, np.unsignedinteger): 
     raise ValueError("y must be signed") 
if isinstance(y, list): 
     y = np.array(y) 

我也opened an issue

他對函數文檔不指定它應該是:

y : ndarray (signed) 
    1D amplitude data to search for peaks. 

TypeError: only integer scalar arrays can be converted to a scalar index

相關問題