Changeset 376d5e9 for python/tests/utils.py
- Timestamp:
- Apr 18, 2016, 11:46:18 PM (8 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:
- 81ad577, e76842e
- Parents:
- 6db7600
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/utils.py
r6db7600 r376d5e9 5 5 from numpy import array 6 6 filename = os.path.join(os.path.dirname(__file__), filename) 7 return array([line.split() for line in open(filename).readlines()], 8 dtype = dtype) 7 with open(filename) as f: 8 lines = f.readlines() 9 return array([line.split() for line in lines], 10 dtype = dtype) 9 11 10 12 def list_all_sounds(rel_dir):
Note: See TracChangeset
for help on using the changeset viewer.