9997c504c74bc973564e76fb9f4f4e129ccfe542,astroML/time_series/tests/test_generate.py,,test_generate_args,#,13

Before Change


def test_generate_args():
    dt = 0.1
    beta = 2
    for N in [10, 11]:
        for generate_complex in [True, False]:
            yield (check_generate_args, N, dt, beta, generate_complex)


def test_generate_RW():
    t = np.arange(0., 1E2)
    tau = 300
    z = 2.0

After Change


    beta = 2
    x = generate_power_law(N, dt, beta, generate_complex)

    assert_(bool(generate_complex) == np.iscomplexobj(x))
    assert_(len(x) == N)


def test_generate_RW():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: astroML/astroML
Commit Name: 9997c504c74bc973564e76fb9f4f4e129ccfe542
Time: 2018-11-30
Author: bsipocz@gmail.com
File Name: astroML/time_series/tests/test_generate.py
Class Name:
Method Name: test_generate_args


Project Name: librosa/librosa
Commit Name: 85bb9812576159ba04f70fc5ad59bedf5dba3765
Time: 2019-08-15
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_resample_stereo


Project Name: astroML/astroML
Commit Name: 9997c504c74bc973564e76fb9f4f4e129ccfe542
Time: 2018-11-30
Author: bsipocz@gmail.com
File Name: astroML/time_series/tests/test_generate.py
Class Name:
Method Name: test_generate_args


Project Name: librosa/librosa
Commit Name: 85bb9812576159ba04f70fc5ad59bedf5dba3765
Time: 2019-08-15
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_resample_mono