ref: 58a82d4b72d6fe1a8dff10a285ad60e24cc9edbc
parent: 04b31afc880f91a2687db5859dce318aad8412f5
author: Paul Brossier <piem@piem.org>
date: Mon Oct 29 11:18:59 EDT 2018
[py] add test with slices shorter than hop_size
--- a/python/tests/test_slicing.py
+++ b/python/tests/test_slicing.py
@@ -36,6 +36,12 @@
slice_source_at_stamps(self.source_file, regions_start, output_dir = self.output_dir,
hopsize = 200)
+ def test_slice_start_every_half_blocksize(self):
+ hopsize = 200
+ regions_start = [i*hopsize//2 for i in range(1, n_slices)]
+ slice_source_at_stamps(self.source_file, regions_start,
+ output_dir = self.output_dir, hopsize = 200)
+
def tearDown(self):
original_samples = count_samples_in_file(self.source_file)
written_samples = count_samples_in_directory(self.output_dir)