Skip to content

Commit 857916a

Browse files
committed
enable check segment cohesion
1 parent 5ddb1df commit 857916a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

wfdb/io/record.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,9 @@ def wrsamp(self, expanded=False, write_dir=""):
11771177
N/A
11781178
11791179
"""
1180+
# Validate segment cohesion before writing anything.
1181+
self._check_segment_cohesion()
1182+
11801183
# Perform field validity and cohesion checks, and write the
11811184
# header file.
11821185
self.wrheader(write_dir=write_dir)

0 commit comments

Comments
 (0)