d3fd847ea63f5a4df3355ff5e43b3228cf43c444,tests/test_core.py,,test_piptrack,#,486

Before Change



    S = np.asarray([[1, 0, 0]]).T
    np.seterr(divide="raise")
    yield __test, None, 22050, S, 4096, None, 150.0, 4000.0, 0.1


def test_estimate_tuning():

After Change



    for n_fft in [2048, 4096]:
        for hop_length in [None, n_fft // 4, n_fft // 2]:
            S = np.abs(librosa.stft(y, n_fft=n_fft, hop_length=hop_length))
            for fmin in [0, 100]:
                for fmax in [4000, 8000, sr // 2]:
                    for threshold in [0.1, 0.2, 0.5]:
                        yield __test, S, n_fft, hop_length, fmin, fmax, threshold


def test_piptrack_negative():

    def __test(y, sr, S, n_fft, hop_length, fmin, fmax, threshold):
        pitches, mags = librosa.piptrack(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: librosa/librosa
Commit Name: d3fd847ea63f5a4df3355ff5e43b3228cf43c444
Time: 2015-08-31
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_piptrack


Project Name: librosa/librosa
Commit Name: cb82400b9fb1d3997ed02f616209485d5ef0005f
Time: 2015-08-31
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_piptrack


Project Name: IDSIA/sacred
Commit Name: e56ca3701bc758ae526e849b44855c6f0abd4a96
Time: 2019-08-13
Author: gabrieldemarmiesse@gmail.com
File Name: sacred/ingredient.py
Class Name: Ingredient
Method Name: gather_named_configs


Project Name: IDSIA/sacred
Commit Name: e56ca3701bc758ae526e849b44855c6f0abd4a96
Time: 2019-08-13
Author: gabrieldemarmiesse@gmail.com
File Name: sacred/ingredient.py
Class Name: Ingredient
Method Name: gather_commands