Showing the changes to python (9 of 9 files). Show all
Unified · Split
| @@ -1 +0,0 @@ | ||
| 1 | − | |
| @@ -2,7 +2,7 @@ · 1 unmodified line | ||
| 2 | 2 | |
| 3 | 3 | from numpy.testing import TestCase, assert_equal, assert_almost_equal |
| 4 | 4 | from aubio import fvec, digital_filter |
| 5 | −from .utils import array_from_text_file | |
| 5 | +from utils import array_from_text_file | |
| 6 | 6 | |
| 7 | 7 | class aubio_filter_test_case(TestCase): |
| 8 | 8 | |
| @@ -4,7 +4,7 @@ import numpy as np · 3 unmodified lines | ||
| 4 | 4 | from numpy.testing import TestCase, assert_equal, assert_almost_equal |
| 5 | 5 | |
| 6 | 6 | from aubio import cvec, filterbank, float_type |
| 7 | −from .utils import array_from_text_file | |
| 7 | +from utils import array_from_text_file | |
| 8 | 8 | |
| 9 | 9 | class aubio_filterbank_test_case(TestCase): |
| 10 | 10 | |
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | #! /usr/bin/env python |
| 2 | 2 | |
| 3 | −from ._tools import parametrize, assert_raises | |
| 3 | +from _tools import parametrize, assert_raises | |
| 4 | 4 | from numpy import random, count_nonzero |
| 5 | 5 | from numpy.testing import TestCase |
| 6 | 6 | from aubio import mfcc, cvec, float_type |
| @@ -2,7 +2,7 @@ · 1 unmodified line | ||
| 2 | 2 | # -*- coding: utf-8 -*- |
| 3 | 3 | |
| 4 | 4 | from aubio import midi2note |
| 5 | −from ._tools import parametrize, assert_raises | |
| 5 | +from _tools import parametrize, assert_raises | |
| 6 | 6 | |
| 7 | 7 | list_of_known_midis = ( |
| 8 | 8 | ( 0, 'C-1' ), |
| @@ -5,7 +5,7 @@ from __future__ import unicode_literals · 4 unmodified lines | ||
| 5 | 5 | |
| 6 | 6 | from aubio import note2midi, freq2note, note2freq, float_type |
| 7 | 7 | from numpy.testing import TestCase |
| 8 | −from ._tools import parametrize, assert_raises | |
| 8 | +from _tools import parametrize, assert_raises | |
| 9 | 9 | |
| 10 | 10 | list_of_known_notes = ( |
| 11 | 11 | ( 'C-1', 0 ), |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | ||
| 3 | 3 | from numpy.testing import TestCase, assert_equal, assert_almost_equal |
| 4 | 4 | from aubio import notes, source |
| 5 | 5 | import numpy as np |
| 6 | −from .utils import list_all_sounds | |
| 6 | +from utils import list_all_sounds | |
| 7 | 7 | |
| 8 | 8 | list_of_sounds = list_all_sounds('sounds') |
| 9 | 9 | |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | #! /usr/bin/env python |
| 2 | 2 | |
| 3 | 3 | from numpy.testing import TestCase, assert_equal, assert_array_less |
| 4 | −from ._tools import parametrize | |
| 4 | +from _tools import parametrize | |
| 5 | 5 | from aubio import fvec, cvec, pvoc, float_type |
| 6 | 6 | import numpy as np |
| 7 | 7 | |
| @@ -2,8 +2,8 @@ · 1 unmodified line | ||
| 2 | 2 | |
| 3 | 3 | from numpy.testing import TestCase, assert_equal |
| 4 | 4 | from aubio import slice_source_at_stamps |
| 5 | −from .utils import count_files_in_directory, get_default_test_sound | |
| 6 | −from .utils import count_samples_in_directory, count_samples_in_file | |
| 5 | +from utils import count_files_in_directory, get_default_test_sound | |
| 6 | +from utils import count_samples_in_directory, count_samples_in_file | |
| 7 | 7 | |
| 8 | 8 | import tempfile |
| 9 | 9 | import shutil |