Esempio n. 1
0
def test_masks():
    """All the late targets should be covered."""
    c9fov = getKeplerFov(9)
    for idx, target in LATE_TARGETS.iterrows():
        ch, col, row = c9fov.getChannelColRow(target.ra, target.dec)
        assert c9.pixelInMicrolensRegion(int(ch), int(col), int(row))
        assert c9.maskInMicrolensRegion(int(ch), int(col), int(row), padding=4.99)
Esempio n. 2
0
def test_masks():
    """All the late targets should be covered."""
    for idx, target in LATE_TARGETS.iterrows():
        ch, col, row = target.dc_channel, target.dc_col, target.dc_row
        assert c9.pixelInMicrolensRegion(int(ch), int(col), int(row))
        assert c9.maskInMicrolensRegion(int(ch),
                                        int(col),
                                        int(row),
                                        padding=4.99)
Esempio n. 3
0
def test_masks():
    """All the late targets should be covered."""
    for idx, target in LATE_TARGETS.iterrows():
        ch, col, row = target.dc_channel, target.dc_col, target.dc_row
        assert c9.pixelInMicrolensRegion(int(ch), int(col), int(row))
        assert c9.maskInMicrolensRegion(int(ch), int(col), int(row), padding=4.99)