Open JesseShaw opened 2 years ago
This works when ignore_badsignalwarning=False but the signal length shrinks by the number of bad readings in the signal.
bvp_vec = bvp_in.iloc[:,0] filtered = hp.filter_signal(bvp_vec, [0.7, 3.5], sample_rate=bvp_smplrt, order=3, filtertype='bandpass') wd, m = hp.process_segmentwise(filtered, sample_rate = bvp_smplrt, segment_width = 60, segment_overlap = 0, replace_outliers=True, mode='full', ignore_badsignalwarning=True) bvp = pd.DataFrame(data=m, index=None)
ValueError Traceback (most recent call last)
Can you share with me the data you're using?
This works when ignore_badsignalwarning=False but the signal length shrinks by the number of bad readings in the signal.
bvp_vec = bvp_in.iloc[:,0] filtered = hp.filter_signal(bvp_vec, [0.7, 3.5], sample_rate=bvp_smplrt, order=3, filtertype='bandpass') wd, m = hp.process_segmentwise(filtered, sample_rate = bvp_smplrt, segment_width = 60, segment_overlap = 0, replace_outliers=True, mode='full', ignore_badsignalwarning=True) bvp = pd.DataFrame(data=m, index=None)
ValueError Traceback (most recent call last)