Just change this line to:
y = abs(f[1:len(f)//2])
(using // instead of / to get integer for slice index)

On Tuesday, August 29, 2017 at 11:29:17 PM UTC+3, Thomas W wrote:
>
>
> Right clicking a plot, and going to Plot Options -> Transforms -> Power 
> Spectrum results in a crash, which appears to be from the lack of 
> __future__ division.
>
> pyqtgraph/graphicsItems/PlotDataItem.py
> line 683, in _fourierTransform
>
> y = abs(f[1:len(f)/2])
> TypeError: slice indices must be integers or None or have an __index__ 
> method
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/80c192fc-8fa7-4f11-a497-840894684ade%40googlegroups.com.

Reply via email to