Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for line in input:
- line1 = line.replace("\n","")
- arr = line1.split('/')
- _, fields = wfdb.rdsamp(arr[1], pb_dir='ptbdb/' + arr[0] + '/')
- if 'Healthy control' in fields['comments'][4]:
- list.append(1)
- record_result.append(line)
- if 'Myocardial infarction' in fields['comments'][4]:
- if 'inferior' in fields['comments'][5]:
- list.append(0)
- record_result.append(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement