rec_name_array = [] annotator_array = [] wo_continuation_recs = [] recs_to_remove = ['n24', 'n27', 'n28'] annotator_array = ws.dload_annotator_names(db_name) for ann_name in annotator_array: print ann_name if ann_name == "qrs": annotation = ann_name if ann_name == "atr": annotation = ann_name print("annotators for this database are: " + str(annotator_array) + " we are choosing " + str(annotation)) initial_rec_array = ws.dload_rec_names(db_name) wo_continuation_recs = ws.rmv_continuation_rec(initial_rec_array) rec_name_array = ws.rmv_test_rec(wo_continuation_recs) #rec_name_array=ws.rmv_even_rec(wo_continuation_recs) print str(rec_name_array) ############################################################################# #### list of features (per record) that we want to extract ###### # global_mean # global_std_dev # nn50 # pnn50 # sdsd # window_1_std_dev
annotator_array = ws.dload_annotator_names(db_name) for ann_name in annotator_array: print ann_name if ann_name == "atr": annotation = ann_name elif ann_name == "qrs": annotation = ann_name elif ann_name == "ecg": annotation = ann_name # if db_name == 'afdb': # annotation='atr' print ("annotators for this database are: " + str(annotator_array) + " we are choosing " + str(annotation)) initial_rec_array = ws.dload_rec_names(db_name) wo_continuation_recs = ws.rmv_continuation_rec(initial_rec_array) rec_name_array = ws.rmv_test_rec(wo_continuation_recs) # rec_name_array=ws.rmv_even_rec(wo_continuation_recs) print str(rec_name_array) db_name = "afpdb" initial_rec_array = [] rec_name_array = [] annotator_array = [] wo_continuation_recs = []