Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program crash when attempting to plot power spectrum #79

Open
pyjamashark opened this issue Oct 16, 2018 · 3 comments
Open

Program crash when attempting to plot power spectrum #79

pyjamashark opened this issue Oct 16, 2018 · 3 comments

Comments

@pyjamashark
Copy link

When I try use one the plot option (ie if I right click on a trace) in in order to plot the power spectrum (FFT) the program crashes and I get the following error.

python start.py
/opt/anaconda/lib/python3.7/site-packages/sklearn/ensemble/weight_boosting.py:29: DeprecationWarning: numpy.core.umath_tests is an internal NumPy module and should not be imported. It will be removed in a future NumPy release.
from numpy.core.umath_tests import inner1d
/opt/anaconda/lib/python3.7/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
failed to load lineprofile
failed to load lineprofile
Traceback (most recent call last):
File "/opt/anaconda/lib/python3.7/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 891, in updateSpectrumMode
c.setFftMode(b)
AttributeError: 'HDF5Plot' object has no attribute 'setFftMode'

@pyjamashark
Copy link
Author

I tried the development version and got a similar error:

/opt/anaconda/lib/python3.7/site-packages/sklearn/ensemble/weight_boosting.py:29: DeprecationWarning: numpy.core.umath_tests is an internal NumPy module and should not be imported. It will be removed in a future NumPy release.
from numpy.core.umath_tests import inner1d
3
Traceback (most recent call last):
File "/opt/anaconda/lib/python3.7/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 891, in updateSpectrumMode
c.setFftMode(b)
AttributeError: 'HDF5Plot' object has no attribute 'setFftMode'
Aborted (core dumped)

@jcornford
Copy link
Owner

Hi,

Sorry, those plot options are available by default from the underlying libraries, I didn't actually implement those options. Thanks for raising I will debug them.

In the mean time you could hit the show fft checkbox option and then plot that? I think the export -> SVG is probably the best way to save the plots.

@pyjamashark
Copy link
Author

pyjamashark commented Oct 16, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants