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):
255255 record_write = wfdb .rdrecord ("flacformats" , physical = False )
256256 assert record == record_write
257257
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+
258275 def test_read_flac_longduration (self ):
259276 """
260277 Three signals multiplexed in a FLAC file, over 2**24 samples.
@@ -637,6 +654,10 @@ def tearDownClass(cls):
637654 "flacformats.d1" ,
638655 "flacformats.d2" ,
639656 "flacformats.hea" ,
657+ "mixedsignals.hea" ,
658+ "mixedsignals_e.dat" ,
659+ "mixedsignals_p.dat" ,
660+ "mixedsignals_r.dat" ,
640661 "s0010_re.dat" ,
641662 "s0010_re.hea" ,
642663 "s0010_re.xyz" ,
You can’t perform that action at this time.
0 commit comments