def down_mix_test(self): samples = numpy.array([[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]]).transpose() down_mixed_samples = numpy.array([[0, 1, 2, 3, 4]]).transpose() numpy.testing.assert_array_equal(block_functions.fix_channel_count(samples, 1), down_mixed_samples)
def down_mix_test(self): samples = numpy.array([[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]]).transpose() down_mixed_samples = numpy.array([[0, 1, 2, 3, 4]]).transpose() numpy.testing.assert_array_equal( block_functions.fix_channel_count(samples, 1), down_mixed_samples)
def identity_test(self): samples = numpy.array([[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]]).transpose() numpy.testing.assert_array_equal(block_functions.fix_channel_count(samples, 2), samples)
def identity_test(self): samples = numpy.array([[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]]).transpose() numpy.testing.assert_array_equal( block_functions.fix_channel_count(samples, 2), samples)