Note
Click here to download the full example code
Data manipulationΒΆ
Note
This is a copy of the jupyter notebook with the following name: Data_manipulation_ECG_PPG.ipynb. The other option is to use the sphinx extension sphinx-nbexamples.
Out:
Importing the dtw module. When using in academic works please cite:
T. Giorgino. Computing and Visualizing Dynamic Time Warping Alignments in R: The dtw Package.
J. Stat. Soft., doi:10.18637/jss.v031.i07.
12 # Import generic
13 import os
14
15 # Import vital_sqi
16 from vital_sqi.data.signal_io import ECG_reader
17
18 # ------------------------------------
19 # Load data
20 # ------------------------------------
21 # Create path
22 folder_name = '../../tests/test_data'
23 file_name = 'example.edf'
24 path = os.path.join(folder_name, file_name)
25
26 # Read (there is an error when loading)
27 #df, info = ECG_reader(path,'edf')
28
29 # Show
30 #print(df)
31
32 # -----------------------------------
33 #
34 # -----------------------------------
Total running time of the script: ( 0 minutes 1.023 seconds)