示例#1
0
def test_sc_percentile():
    """
    """
    sc = ShortCadence(
        ticid=TICID,
        sap_mask="percentile",
        percentile=90,
        quality_bitmask=QUALITY_BITMASK,
    )
    _ = sc.make_custom_lc()
    assert isinstance(sc.lc_custom, lk.LightCurve)
示例#2
0
def test_sc_round():
    """
    """
    sc = ShortCadence(
        ticid=TICID,
        sap_mask="round",
        aper_radius=1,
        quality_bitmask=QUALITY_BITMASK,
    )
    _ = sc.make_custom_lc()
    assert isinstance(sc.lc_custom, lk.LightCurve)
示例#3
0
def test_sc_threshold():
    """
    """
    sc = ShortCadence(
        ticid=TICID,
        sap_mask="threshold",
        threshold_sigma=5,
        quality_bitmask=QUALITY_BITMASK,
    )
    _ = sc.make_custom_lc()
    assert isinstance(sc.lc_custom, lk.LightCurve)
示例#4
0
def test_sc_square():
    """
    """
    sc = ShortCadence(
        ticid=TICID,
        sap_mask="square",
        aper_radius=1,
        threshold_sigma=5,
        percentile=95,
        quality_bitmask=QUALITY_BITMASK,
    )
    _ = sc.make_custom_lc()
    assert isinstance(sc.lc_custom, lk.LightCurve)