History

python/lib/aubio/slicing.py: use start and end stamps, make sure read > 0, improve tests

Paul Brossier committed 12 years ago

Commit f36ecea1 parent d9459763 files · +51 −18Browse files

Showing the changes to python/tests/utils.py (1 of 3 files). Show all

Unified · Split

python/tests/utils.py+11−0
@@ -47,3 +47,14 @@ def count_samples_in_directory(samples_dir): · 46 unmodified lines
4747 if file_path:
4848 total_frames += count_samples_in_file(file_path)
4949 return total_frames
50+
51+def count_files_in_directory(samples_dir):
52+ import os
53+ total_files = 0
54+ for f in os.walk(samples_dir):
55+ if len(f[2]):
56+ for each in f[2]:
57+ file_path = os.path.join(f[0], each)
58+ if file_path:
59+ total_files += 1
60+ return total_files

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t