Changeset f36ecea for python/tests/utils.py
- Timestamp:
- Jan 12, 2014, 5:54:42 AM (10 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, pitchshift, sampler, timestretch, yinfft+
- Children:
- 4320679
- Parents:
- d945976
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/utils.py
rd945976 rf36ecea 48 48 total_frames += count_samples_in_file(file_path) 49 49 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
Note: See TracChangeset
for help on using the changeset viewer.