forrestbao / pyeeg

Python + EEG/MEG = PyEEG
GNU General Public License v3.0
241 stars 85 forks source link

Fix type warning in numpy slicing #21

Closed himkt closed 5 years ago

himkt commented 7 years ago

Hi, thank you for providing pyeeg !

I found a tweak warning, so I fix it and send this PR.

Using float object to slice array, python raise a warning like bellow.

VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future ): numpy.floor(Next_Freq / Fs * len(X))]

So I have converted numpy.floor(・) to Integer.

If you have some reasons to ignore this warning, please reject this pull request.

Thanks.