MIT-LCP / wfdb-python

Native Python WFDB package
MIT License
738 stars 300 forks source link

Add functions to determine sample ranges of signals in multi-segment records #403

Closed cx1111 closed 2 years ago

cx1111 commented 2 years ago

In multi-segment variable layout records, not every segment (sub-record) contains all of the signals contained in the full record. These functions allow you to find the exact sample ranges that contain signals.

  1. contained_ranges - For one signal
  2. contained_combined_ranges - For a set of signals
briangow commented 2 years ago

Thanks so much @cx1111 ! This seems to be working well for me!