Skip to content

Commit

Permalink
remote data test via searchtargetpixelfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Jan 19, 2024
1 parent 077e5a3 commit 98a2c43
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lcviz/tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from glue.core.roi import XRangeROI, YRangeROI
from astropy.time import Time
from astropy.utils.data import download_file
from lightkurve import LightCurve
from lightkurve import LightCurve, search_targetpixelfile
from lightkurve.io import kepler
import astropy.units as u

Expand Down Expand Up @@ -50,6 +50,16 @@ def test_kepler_via_mast_preparsed(helper):
assert flux.unit.is_equivalent(u.electron / u.s)


@pytest.mark.remote_data
def test_kepler_tpf_via_lightkurve(helper):
tpf = search_targetpixelfile("KIC 001429092",
mission="Kepler",
cadence="long",
quarter=10).download()
helper.load_data(tpf)
assert helper.get_data().shape == (4447, 22, 11) # (time, x, y)


def test_synthetic_lc(helper):
time = Time(np.linspace(2460050, 2460060), format='jd')
flux = np.ones(len(time)) * u.electron / u.s
Expand Down

0 comments on commit 98a2c43

Please sign in to comment.