

def test_rrlyrae_generated():
    try:
        rrlyrae = fetch_rrlyrae()
    except (URLError, ConnectionError):
        raise SkipTest('No internet connection: data download test skipped')
    lcid = rrlyrae.ids[100]
    gen = RRLyraeGenerated(lcid)
    assert_equal(gen.period, rrlyrae.get_metadata(lcid)['P'])
    for corrected in [True, False]:
        (t, y, dy) = gen.observed('g', corrected=corrected)
        y = gen.generated('g', t, dy, corrected=corrected)

dataset/ETHPy150Open astroML/gatspy/gatspy/datasets/tests/test_rrlyrae_generated.py test_rrlyrae_generated/original