Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Power Spectrum option bug #30

Closed
mrosanes opened this issue Jul 25, 2019 · 1 comment
Closed

Power Spectrum option bug #30

mrosanes opened this issue Jul 25, 2019 · 1 comment
Labels
rejected For some reason this won't be considered

Comments

@mrosanes
Copy link

Bug found during manual tests on win10 py3qt5 Jul19 release:

How to reproduce
Execute:

taurus tpg trend "eval:Q(rand(),'mm')"

Right click menu -> Plot Options -> Transforms -> Power Spectrum (FFT)

Traceback (most recent call last):
  File "c:\miniconda\envs\py3qt5\lib\site-packages\taurus\qt\qtgui\base\taurusbase.py", line 394, in filterEvent
    self.handleEvent(*evt)
  File "c:\miniconda\envs\py3qt5\lib\site-packages\taurus_pyqtgraph\taurustrendset.py", line 269, in handleEvent
    self._addData(xValues, yValues)
  File "c:\miniconda\envs\py3qt5\lib\site-packages\taurus_pyqtgraph\taurustrendset.py", line 251, in _addData
    curve.setData(x=x, y=y[:, i])
  File "c:\miniconda\envs\py3qt5\lib\site-packages\pyqtgraph\graphicsItems\PlotDataItem.py", line 461, in setData
    self.updateItems()
  File "c:\miniconda\envs\py3qt5\lib\site-packages\pyqtgraph\graphicsItems\PlotDataItem.py", line 483, in updateItems
    x,y = self.getData()
  File "c:\miniconda\envs\py3qt5\lib\site-packages\pyqtgraph\graphicsItems\PlotDataItem.py", line 525, in getData
    x,y = self._fourierTransform(x, y)
  File "c:\miniconda\envs\py3qt5\lib\site-packages\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
@cpascual cpascual changed the title Power Spectrum option bug: tests on win10 py3qt5 Jul19 release Power Spectrum option bug Jul 25, 2019
@cpascual cpascual added the rejected For some reason this won't be considered label Jul 25, 2019
@cpascual
Copy link
Member

This is almost certainly due to an already fixed but unreleased bug in pyqtgraph: pyqtgraph/pyqtgraph#429

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
rejected For some reason this won't be considered
Projects
None yet
Development

No branches or pull requests

2 participants