We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c661d90 + 93ca1fe commit 1ad204cCopy full SHA for 1ad204c
wfdb/processing/basic.py
@@ -122,7 +122,7 @@ def resample_singlechan(x, ann, fs, fs_target):
122
assert ann.sample.shape == new_sample.shape
123
124
resampled_ann = Annotation(ann.record_name, ann.extension, new_sample,
125
- ann.symbol, ann.num, ann.subtype, ann.chan, ann.aux_note, ann.fs)
+ ann.symbol, ann.num, ann.subtype, ann.chan, ann.aux_note, fs_target)
126
127
return resampled_x, resampled_ann
128
@@ -166,7 +166,7 @@ def resample_multichan(xs, ann, fs, fs_target, resamp_ann_chan=0):
166
167
168
resampled_ann = Annotation(ann.record_name, ann.extension, new_sample, ann.symbol,
169
- ann.num, ann.subtype, ann.chan, ann.aux_note, ann.fs)
+ ann.num, ann.subtype, ann.chan, ann.aux_note, fs_target)
170
171
return numpy.column_stack(lx), resampled_ann
172
0 commit comments