-
Notifications
You must be signed in to change notification settings - Fork 275
Unable to import the bcg module in the latest version #81
Comments
Hi, looks like init.py does not include bcg in the import statement |
Hi @afonsocraposo, |
Huge thanks! It will be immensely useful. I tried to do a test run and got the below error. AttributeError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/biosppy/signals/bcg.py in bcg(signal, sampling_rate, show) AttributeError: module 'biosppy.plotting' has no attribute 'plot_bcg' |
I updated the version on PyPI to 0.7.2. Maybe wait a bit so PyPI update the available version. You can always clone the repository and use it on your project doing: import sys
sys.path.insert(0, '/path/to/BioSPPy')
import biosppy |
Great, thanks very much! I just wanted to let you know of any errors I encounter. It works perfectly now. |
Here is the error -
ImportError Traceback (most recent call last)
in
1 from biosppy import storage
----> 2 from biosppy.signals import bcg
3
4 # process it and plot
5 out = bcg.bcg(signal=b1_s1_normbreath, sampling_rate=250, show=True)
ImportError: cannot import name 'bcg' from 'biosppy.signals' (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/biosppy/signals/init.py)
The text was updated successfully, but these errors were encountered: