mirror of
https://github.com/This-weiyuqing/ECG_by_Diffenert_CNN_Test.git
synced 2026-10-17 19:05:30 +08:00
ECG read without wfdb。
完成不使用wfdb的ECG读取功能。
This commit is contained in:
1 parent
fdf7d4f840
commit
1a46457998
1 file changed
+5
-1
@@ -105,8 +105,12 @@ del ATRTIME[len(ATRTIME)-1]
|
||||
ATRTIME=np.array(ATRTIME)
|
||||
ATRTIME=np.cumsum(ATRTIME)/sfreq
|
||||
|
||||
ind=np.where(ATRTIME<=TIME[-1][0])
|
||||
ind=np.where(ATRTIME<=TIME[-1])[0]
|
||||
ATRTIMED=ATRTIME[ind]
|
||||
|
||||
ANNOT=np.round(ANNOT)
|
||||
ANNOTD=ANNOT[ind]
|
||||
|
||||
print(M)
|
||||
print(ANNOT)
|
||||
print(ATRTIME)
|
||||
Reference in new issue
Block a user