-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hi ,
I am trying to test spindle detection using Lacourse2018 to be able to compare with other methods However I get this error . I dont get any error with other methods like Martin2013,FASST,Nir2011
detsp = DetectSpindle(method='Lacourse2018',frequency = (9,16))
sp = detsp(data)
/python_virtual_env/lib/python3.13/site-packages/wonambi/detect/spindle.py:1497: RuntimeWarning: invalid value encountered in scalar divide
out[i] = pow1 / pow2
/python_virtual_env/lib/python3.13/site-packages/numpy/_core/_methods.py:222: RuntimeWarning: Degrees of freedom <= 0 for slice
ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
/python_virtual_env/lib/python3.13/site-packages/numpy/_core/_methods.py:180: RuntimeWarning: invalid value encountered in divide
arrmean = um.true_divide(arrmean, div, out=arrmean,
/python_virtual_env/lib/python3.13/site-packages/numpy/_core/_methods.py:214: RuntimeWarning: invalid value encountered in scalar divide
ret = ret.dtype.type(ret / rcount)
/python_virtual_env/lib/python3.13/site-packages/wonambi/detect/spindle.py:1522: RuntimeWarning: divide by zero encountered in scalar divide
out[i] = (dat[i] - mean(windat)) / std(stddat)
any idea why?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels