Coder Social home page Coder Social logo

Comments (7)

capcarr avatar capcarr commented on July 30, 2024

Hi, could you please specify the version of biosppy that you are using (biosppy.__version__)?
Also, could you provide access to the resp signal that causes the error?

from biosppy.

YutaForLab avatar YutaForLab commented on July 30, 2024

The version is 0.2.2, and the path of resp signal is as follow:
https://app.box.com/s/e3xaxtpn64bksq3rlik2azl0upm0r16t
thank you for your quick reply.

from biosppy.

capcarr avatar capcarr commented on July 30, 2024

What's the sampling rate of the signal?

from biosppy.

YutaForLab avatar YutaForLab commented on July 30, 2024

1kHz it is.

from biosppy.

capcarr avatar capcarr commented on July 30, 2024

Hi @YutaForLab
The function biosppy.signals.resp.resp seems to be working with the signal you provided.
Could you please send the complete stack trace, and the versions of numpy and scipy that you have installed?

from biosppy.

YutaForLab avatar YutaForLab commented on July 30, 2024

Sorry for late to replying.
numpy version is 1.11.1 and scipy version is 0.18.0rc2.
And traceback is as below:

Traceback (most recent call last):
File "ecgProcessing.py", line 30, in
[ts, filtered, zeros, resp_rate_ts, resp_rate] = resp.resp(signal=signal, sa
mpling_rate=1000, show=False)
File "C:\Python27\lib\site-packages\biosppy\signals\resp.py", line 88, in resp

mirror=True)

File "C:\Python27\lib\site-packages\biosppy\signals\tools.py", line 539, in sm
oother
smoothed = np.convolve(w, aux, mode='same')
File "C:\Python27\lib\site-packages\numpy\core\numeric.py", line 1011, in conv
olve
raise ValueError('v cannot be empty')
ValueError: v cannot be empty

thanks a lot.

from biosppy.

capcarr avatar capcarr commented on July 30, 2024

Hi @YutaForLab
This bug does not happen with the latest version in the GitHub repo (as of commit cae32b0). The code in PyPI does not yet have these updates.
I would recommend reinstalling with the GitHub version.

from biosppy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.