File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,23 @@ def test_read_write_flac(self):
255
255
record_write = wfdb .rdrecord ("flacformats" , physical = False )
256
256
assert record == record_write
257
257
258
+ def test_read_write_flac_multifrequency (self ):
259
+ """
260
+ Format 516 with multiple signal files and variable samples per frame.
261
+ """
262
+ # Check that we can read a record and write it out again
263
+ record = wfdb .rdrecord (
264
+ "sample-data/mixedsignals" ,
265
+ physical = False ,
266
+ smooth_frames = False ,
267
+ )
268
+ record .wrsamp (expanded = True )
269
+
270
+ # Check that result matches the original
271
+ record = wfdb .rdrecord ("sample-data/mixedsignals" , smooth_frames = False )
272
+ record_write = wfdb .rdrecord ("mixedsignals" , smooth_frames = False )
273
+ assert record == record_write
274
+
258
275
def test_read_flac_longduration (self ):
259
276
"""
260
277
Three signals multiplexed in a FLAC file, over 2**24 samples.
@@ -637,6 +654,10 @@ def tearDownClass(cls):
637
654
"flacformats.d1" ,
638
655
"flacformats.d2" ,
639
656
"flacformats.hea" ,
657
+ "mixedsignals.hea" ,
658
+ "mixedsignals_e.dat" ,
659
+ "mixedsignals_p.dat" ,
660
+ "mixedsignals_r.dat" ,
640
661
"s0010_re.dat" ,
641
662
"s0010_re.hea" ,
642
663
"s0010_re.xyz" ,
You can’t perform that action at this time.
0 commit comments