History

tests/: array_from_file to look for file in tests/

Paul Brossier committed 13 years ago

Commit a4cc8e51 parent 0d222ee3 files · +11 −8Browse files

Showing the changes to python/tests/test_filter.py (1 of 3 files). Show all

Unified · Split

python/tests/test_filter.py+1−4
@@ -3,10 +3,7 @@ · 2 unmodified lines
33 from numpy.testing import TestCase, assert_equal, assert_almost_equal
44 from aubio import fvec, digital_filter
55 from numpy import array
6−
7−def array_from_text_file(filename, dtype = 'float'):
8− return array([line.split() for line in open(filename).readlines()],
9− dtype = dtype)
6+from utils import array_from_text_file
107
118 class aubio_filter_test_case(TestCase):
129

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t