Skip to content

Spindle detection error with Lacourse2018 #44

@roohy466

Description

@roohy466

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions