Skip to content

Multi-frequency input records #49

@bemoody

Description

@bemoody

A minor issue is that it might be nice to read multi-frequency records at their original sampling rates.

(In the WFDB format, multi-frequency records are accommodated by storing multiple samples per "frame". For example, if the ECG is sampled at 250 Hz and ABP is 100 Hz, the frame frequency might be set to 50 Hz, and each frame would contain 5 samples of ECG and 2 samples of ABP.)

Currently, update_graph uses wfdb.rdsamp to read the signals, which downsamples all signals to the frame frequency:

record = wfdb.rdsamp(record_path, return_res=16)

A better approach might be to use wfdb.rdrecord instead, with the argument smooth_frames=False. However, as of wfdb-python v3.4.1, this doesn't work consistently with single-frequency records (see MIT-LCP/wfdb-python#313).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions