コード例 #1
0
ファイル: test_masks.py プロジェクト: govtmirror/YouHadOneJob
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)
コード例 #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)
コード例 #3
0
ファイル: test_masks.py プロジェクト: KeplerGO/YouHadOneJob
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)