コード例 #1
0
def test_tic_match():
    """test tic match using query_tic_catalog & native vizier search
    TIC v8: https://vizier.u-strasbg.fr/viz-bin/VizieR-3?-source=IV/38/tic
    """
    t = Target(toiid=837)
    tab = t.query_vizier()
    df = tab["IV/38/tic"].to_pandas()
    d1 = df.iloc[0]
    d2 = t.query_tic_catalog(return_nearest_xmatch=True)
    assert int(d1["TIC"]) == int(d2["ID"])
コード例 #2
0
def test_target_xmatch():
    t = Target(toiid=837)
    _ = t.query_gaia_dr2_catalog(return_nearest_xmatch=True)
    _ = t.query_tic_catalog(return_nearest_xmatch=True)
    assert t.validate_gaia_tic_xmatch()
コード例 #3
0
def test_query_tic():
    t = Target(ticid=460205581)
    tic_params1 = t.query_tic_catalog(radius=60)
    assert isinstance(tic_params1, pd.DataFrame)
    tic_params2 = t.query_tic_catalog(return_nearest_xmatch=True)
    assert isinstance(tic_params2, pd.Series)