You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used to work great in 1.3.1 but in 1.4.0 the image is covered with horizontal line.
The can also be seen by averaging over time by plotting Pxx.mean(axis=-1)
The text was updated successfully, but these errors were encountered:
I am sorry, I tried really hard to build a simple code but it all worked fine.
The problem only happens when using data from https://www.kaggle.com/c/seizure-prediction/data
so there is something strange in these specific matlab files.
Anyway, once you have downloaded one of the files, for example Dog_1.tar and open it, you can run the following code:
from matplotlib import pylab as pl
import scipy.io
data = scipy.io.loadmat('Dog_1/Dog_1_interictal_segment_0019.mat')
d = data['interictal_segment_19']['data'][0,0]
pl.specgram(d[0,:])
pl.show()
and 9 horizontal lines appear in equal distance (splitting the y axis to 8 segments)
but I found that if you copy the data everything looks good:
pl.specgram(d[0,:].copy())
pl.show()
which hint that the problem is somehow related to numpy view mechanism
Used to work great in 1.3.1 but in 1.4.0 the image is covered with horizontal line.
The can also be seen by averaging over time by plotting Pxx.mean(axis=-1)
The text was updated successfully, but these errors were encountered: