wfdb-python icon indicating copy to clipboard operation
wfdb-python copied to clipboard

Better representation of segments in multi-segment records

Open cx1111 opened this issue 2 years ago • 0 comments

The current implementation is rather fragile and hard to generalize at times. In particular:

  • The segments attribute is a list of Record or None objects. Perhaps empty records could be represented with an empty-represented Record object instead. One cannot tell the segment length from the None object.
  • For variable-layout records, the layout record is read into the first segment. Maybe there should be a way to abstract away the layout record so that applications do not need to know about fixed vs variable layout records.

cx1111 avatar Jun 30 '22 04:06 cx1111