feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since b583c099 was
a4cc8e5,
checked in by Paul Brossier <piem@piem.org>, 12 years ago
|
tests/: array_from_file to look for file in tests/
|
-
Property mode set to
100644
|
File size:
276 bytes
|
Line | |
---|
1 | #! /usr/bin/env python |
---|
2 | |
---|
3 | def array_from_text_file(filename, dtype = 'float'): |
---|
4 | import os.path |
---|
5 | from numpy import array |
---|
6 | filename = os.path.join(os.path.dirname(__file__), filename) |
---|
7 | return array([line.split() for line in open(filename).readlines()], |
---|
8 | dtype = dtype) |
---|
9 | |
---|
Note: See
TracBrowser
for help on using the repository browser.