Showing the changes to python (7 of 7 files). Show all
Unified · Split
| @@ -0,0 +1 @@ | |||
| 1 | |||
| @@ -24,7 +24,7 @@ import sys · 23 unmodified lines | |||
| 24 | import time | 24 | import time |
| 25 | import os.path | 25 | import os.path |
| 26 | import numpy | 26 | import numpy |
| 27 | from utils import array_from_text_file, array_from_yaml_file | 27 | from .utils import array_from_text_file, array_from_yaml_file |
| 28 | from aubio import source, pitch, freqtomidi | 28 | from aubio import source, pitch, freqtomidi |
| 29 | 29 | ||
| 30 | start = time.time() | 30 | start = time.time() |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | from unittest import main | 3 | from unittest import main |
| 4 | from numpy.testing import TestCase, assert_equal, assert_almost_equal | 4 | from numpy.testing import TestCase, assert_equal, assert_almost_equal |
| 5 | from aubio import fvec, digital_filter | 5 | from aubio import fvec, digital_filter |
| 6 | from utils import array_from_text_file | 6 | from .utils import array_from_text_file |
| 7 | 7 | ||
| 8 | class aubio_filter_test_case(TestCase): | 8 | class aubio_filter_test_case(TestCase): |
| 9 | 9 | ||
| @@ -5,7 +5,7 @@ from numpy.testing import TestCase · 4 unmodified lines | |||
| 5 | from numpy.testing import assert_equal, assert_almost_equal | 5 | from numpy.testing import assert_equal, assert_almost_equal |
| 6 | import numpy as np | 6 | import numpy as np |
| 7 | from aubio import cvec, filterbank, float_type | 7 | from aubio import cvec, filterbank, float_type |
| 8 | from utils import array_from_text_file | 8 | from .utils import array_from_text_file |
| 9 | 9 | ||
| 10 | class aubio_filterbank_test_case(TestCase): | 10 | class aubio_filterbank_test_case(TestCase): |
| 11 | 11 | ||
| @@ -4,7 +4,7 @@ from nose2 import main · 3 unmodified lines | |||
| 4 | from nose2.tools import params | 4 | from nose2.tools import params |
| 5 | from numpy.testing import TestCase | 5 | from numpy.testing import TestCase |
| 6 | from aubio import fvec, source, sink | 6 | from aubio import fvec, source, sink |
| 7 | from utils import list_all_sounds, get_tmp_sink_path, del_tmp_sink_path | 7 | from .utils import list_all_sounds, get_tmp_sink_path, del_tmp_sink_path |
| 8 | 8 | ||
| 9 | list_of_sounds = list_all_sounds('sounds') | 9 | list_of_sounds = list_all_sounds('sounds') |
| 10 | samplerates = [0, 44100, 8000, 32000] | 10 | samplerates = [0, 44100, 8000, 32000] |
| @@ -3,8 +3,8 @@ · 2 unmodified lines | |||
| 3 | from unittest import main | 3 | from unittest import main |
| 4 | from numpy.testing import TestCase, assert_equal | 4 | from numpy.testing import TestCase, assert_equal |
| 5 | from aubio import slice_source_at_stamps | 5 | from aubio import slice_source_at_stamps |
| 6 | from utils import count_files_in_directory, get_default_test_sound | 6 | from .utils import count_files_in_directory, get_default_test_sound |
| 7 | from utils import count_samples_in_directory, count_samples_in_file | 7 | from .utils import count_samples_in_directory, count_samples_in_file |
| 8 | 8 | ||
| 9 | import tempfile | 9 | import tempfile |
| 10 | import shutil | 10 | import shutil |
| @@ -4,7 +4,7 @@ from nose2 import main · 3 unmodified lines | |||
| 4 | from nose2.tools import params | 4 | from nose2.tools import params |
| 5 | from numpy.testing import TestCase, assert_equal | 5 | from numpy.testing import TestCase, assert_equal |
| 6 | from aubio import source | 6 | from aubio import source |
| 7 | from utils import list_all_sounds | 7 | from .utils import list_all_sounds |
| 8 | import numpy as np | 8 | import numpy as np |
| 9 | 9 | ||
| 10 | import warnings | 10 | import warnings |