Changeset d194d8c
- Timestamp:
- Oct 29, 2018, 3:32:55 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- e126e65
- Parents:
- c9c012e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/test_slicing.py
rc9c012e rd194d8c 24 24 def test_slice_start_only_no_zero(self): 25 25 regions_start = [i*1000 for i in range(1, n_slices)] 26 slice_source_at_stamps(self.source_file, regions_start, output_dir = self.output_dir) 26 slice_source_at_stamps(self.source_file, regions_start, 27 output_dir = self.output_dir, create_first=True) 27 28 28 29 def test_slice_start_beyond_end(self): 29 30 regions_start = [i*1000 for i in range(1, n_slices)] 30 31 regions_start += [count_samples_in_file(self.source_file) + 1000] 31 slice_source_at_stamps(self.source_file, regions_start, output_dir = self.output_dir) 32 slice_source_at_stamps(self.source_file, regions_start, 33 output_dir = self.output_dir, create_first=True) 32 34 33 35 def test_slice_start_every_blocksize(self): … … 153 155 regions_end = None 154 156 slice_source_at_stamps (self.source_file, regions_start, regions_end, 155 output_dir = self.output_dir )157 output_dir = self.output_dir, create_first=True) 156 158 total_files = count_files_in_directory(self.output_dir) 157 159 assert_equal(n_slices, total_files,
Note: See TracChangeset
for help on using the changeset viewer.