Comments (7)
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.
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.
What's the sampling rate of the signal?
from biosppy.
1kHz it is.
from biosppy.
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.
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.
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)
- Single-channel EEG support HOT 4
- Simple store the processed data HOT 2
- eda basic_scr mismatch in returned indices HOT 1
- BVP codes reference HOT 4
- BVP vs PPG HOT 1
- joblib import error HOT 1
- what is nch in eeg.py ? HOT 2
- Minimum required r-peaks not mentioned in documentation HOT 2
- Online ecg processing from wearable HR monitor HOT 2
- Unable to import the bcg module in the latest version HOT 7
- ValueError: too many values to unpack (expected 1) HOT 1
- How to use biosppy.clustering HOT 1
- ACC not found HOT 3
- Issues finding the onsets of PPG HOT 3
- Can I extract EDR information from ECG HOT 2
- sampling rate ? HOT 2
- can i do real time plotting with values fetched from .json file? HOT 5
- Empty vector `zeros` not handled in `eda` function HOT 1
- Recovering index into original data from rpeaks array HOT 2
- Clustering Example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biosppy.