eca463691a033207261d9b65f9302822b2509571,tests/test_core.py,,test_fmt_scale,#,729

Before Change


    for scale in [9./8, 7./8]:

        // Scale the time axis
        y_res = librosa.resample(y_orig, 1.0, scale, fix=True, res_type="scipy")

        // Re-normalize the energy to match that of y_orig
        y_res /= np.sqrt(scale)

After Change


    for scale in [9./8, 7./8]:

        // Scale the time axis
        x_res = np.linspace(bounds[0], bounds[1], num=scale * num, endpoint=False)
        y_res = f(x_res)

        // Re-normalize the energy to match that of y_orig
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: librosa/librosa
Commit Name: eca463691a033207261d9b65f9302822b2509571
Time: 2015-10-12
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_fmt_scale


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 89b43bbd55550d5c103a8b06281d9bc62e533680
Time: 2019-08-05
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAData/data_resample.py
Class Name:
Method Name: QA_data_min_resample


Project Name: nilmtk/nilmtk
Commit Name: 53823a31d05f187df7967b7208ce97f584964551
Time: 2014-12-20
Author: jack-list@xlk.org.uk
File Name: nilmtk/electric.py
Class Name: Electric
Method Name: activity_distribution