def test_lomb_scargle_multiband(N=100, period=1):
    t, y, dy = _generate_data(N, period)
    periods = np.linspace(period / 2, period * 2, 100)
    omega = 2 * np.pi / period

    model = LombScargle(center_data=False, fit_offset=True)
    model.fit(t, y, dy)

    model_mb = LombScargleMultiband(center_data=False)
    model_mb.fit(t, y, dy, filts=1)

    assert_allclose(model.score(periods),
                    model_mb.score(periods))

    assert_allclose(model._best_params(omega),
                    model_mb._best_params(omega)[:3])

    assert_allclose(model.predict(t, period=period),
                    model_mb.predict(t, filts=1, period=period))
Test that results are the same with/without filter labels
dataset/ETHPy150Open astroML/gatspy/gatspy/periodic/tests/test_lomb_scargle_multiband.py/test_lomb_scargle_multiband