问题原因:nd.array值直接用做数组索引,索引一般需为整数,可能带来风险,比如浮点数作为索引

解决方案:把nd.array值强制转成int 

peakIdx = int( np.asarray(peakIdx[0]) )

 

相关文章:

  • 2021-10-31
  • 2021-10-10
  • 2022-12-23
  • 2021-06-30
  • 2021-09-15
  • 2021-04-29
猜你喜欢
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2021-07-10
  • 2022-12-23
相关资源
相似解决方案