Ignore:
Timestamp:
Jan 12, 2014, 5:54:42 AM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/utils.py

    rd945976 rf36ecea  
    4848                    total_frames += count_samples_in_file(file_path)
    4949    return total_frames
     50
     51def 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.