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
I found bugs in some classes for feature extractions. The issue is with slice indices which should be integers (but the are floats). For example this error:
Hi, @mavrix93 !
I think that is because you are using Python2 and math.ceil returns a float in Python2. In Python3 it returns an integer and all is OK.
Actually, setup.py indicates that Python2 is supported.
@ipashchenko how did u import the FATS in python3? I believe we get a syntax error when trying to import the FATS in python 3 as the code is written in python2 and the print is a statement in py2 where as py3 expects print to be a function. Could you share if you applied any fix while importing into python3?
Hello,
I found bugs in some classes for feature extractions. The issue is with slice indices which should be integers (but the are floats). For example this error:
Method math.ceil returns floats. So it would be sufficient to wrap it by int().
Another example in the file lomb.py line 150:
wk1 = wk1[1:nout+1]
wk2 = wk2[1:nout+1]
since variable "nout" is float it should look like this:
wk1 = wk1[1:int(nout)+1]
wk2 = wk2[1:int(nout)+1]
This version works for me.
I would like to use this library in my package, so I would be grateful to have these little bugs fixed.
Thank you.
The text was updated successfully, but these errors were encountered: