Showing the changes to python/tests/test_filter.py (1 of 3 files). Show all
Unified · Split
| @@ -3,10 +3,7 @@ · 2 unmodified lines | ||
| 3 | 3 | from numpy.testing import TestCase, assert_equal, assert_almost_equal |
| 4 | 4 | from aubio import fvec, digital_filter |
| 5 | 5 | 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 | |
| 10 | 7 | |
| 11 | 8 | class aubio_filter_test_case(TestCase): |
| 12 | 9 | |