Comments (5)
Great, thank you!
The problem is that you use fmt='wf'
instead of fmt='wfdb'
in load function. 'wfdb'
is the proper value here to use for the wfdb
files.
An error about the format should've been raised when you passed wrong value, I'll look into the reasons why it did not.
from cardio.
Hi, @Myles-JB !
Please provide the code that caused the error including the code you used to create and process sample
object you've mentioned.
This error might appear in case you create an EcgBatch
object and do not use load
action to load the signals into it, but it's hard to tell without the code.
from cardio.
Hi @dpodvyaznikov,
Thanks for getting back!
Below is the code that I have been using including imports etc.
import matplotlib.pyplot as plt
import pandas as pd
import wfdb as wf
import cardio
import cardio.batchflow as bf
from cardio import EcgDataset
from cardio import EcgBatch
import sys
pathToDataSet = "physionet.org/physiobank/database/afdb/*.hea"
pathToRefCSV = "physionet.org/physiobank/database/afdb/REFERENCE.csv"
dataset = EcgDataset(path=pathToDataSet, no_ext=True, sort=True)
batch = dataset.next_batch(batch_size=6, unique_labels=['A', 'N', 'O'])
sample = batch.load(fmt='wf', components=['signal', 'meta'])
sample = sample.load(src = pathToRefCSV, fmt='csv', components='target' )
sample.show_ecg('A00001')
from cardio.
Amazing!
Thanks for your help!
from cardio.
Fixed in #23
Closing this issue.
from cardio.
Related Issues (20)
- Dataset - TypeError: only integer scalar arrays can be converted to a scalar index HOT 2
- support for wfdb-2.2.x HOT 2
- I.CardIO.ipynb Error in line [6] HOT 2
- Errors on running tutorials HOT 2
- ModuleNotFoundError: No module named 'cardio.dataset' HOT 2
- GMM in scikit-learn deprecation 0.19.1 HOT 2
- Installation Failed ( pyEDFlib requires a version of NumPy, even for setup ) HOT 2
- pipenv installation doesn't work HOT 2
- what is difference A00001~A08528 microsoft Access Table Shortcut and sel30~selxx HOT 4
- how can i load split ECG data HOT 3
- Cardio with TF 1.14
- how can i find "batch_size" function? HOT 3
- Training time with training2017 dataset HOT 1
- reading labeled data HOT 2
- How to pass train and validation data together? HOT 3
- ECG segmentation perfomance HOT 3
- install_requires question HOT 2
- how to predict with .edf file? HOT 6
- HMM Jupyter notebook gives batchflow import errors HOT 4
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 cardio.