projects
/
aubio.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
tests/: array_from_file to look for file in tests/
[aubio.git]
/
python
/
tests
/
utils.py
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