jcornford / pyecog

For classifying single channel ECoG recordings (iEEG)
9 stars 6 forks source link

Program crash when attempting to plot power spectrum #79

Open pyjamashark opened 5 years ago

pyjamashark commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Great, thanks for your help that works well!

On Tue, 16 Oct 2018 at 11:56, Jonathan Cornford notifications@github.com<mailto:notifications@github.com> wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jcornford/pyecog/issues/79#issuecomment-430176511, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIFhTWnBrxzhJh7OCFCGUxB1lVcGEjUtks5ula0_gaJpZM4Xd73L.


UNIVERSITY OF CAPE TOWN

This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.