question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

search_lightcurvefile returning files for multiple Kepler IDs

See original GitHub issue

Problem description

Using search_lightcurvefile to look for data from one Kepler ID returns files for a different Kepler ID in addition to the requested one.

Example

import lightkurve
lc_filelist = lightkurve.search_lightcurvefile(f"KIC 10058374", cadence='long', quarter=[10]).download_all()

Expected behavior

I expect:

print(lc_filelist)

LightCurveFileCollection of 2 objects:
	KIC 10058374 (1 KeplerLightCurveFiles) Quarters: 10

Instead I get:

print(lc_filelist)

LightCurveFileCollection of 2 objects:
	KIC 10058374 (1 KeplerLightCurveFiles) Quarters: 10
	KIC 10058376 (1 KeplerLightCurveFiles) Quarters: 10

Environment

  • platform (e.g. Linux, OSX, Windows): OSX High Sierra
  • lightkurve version (e.g. 1.0b6): 1.9.1
  • installation method (e.g. pip, conda, source): pip

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
barentsencommented, Aug 7, 2020

I merged #796 – this issue should now be fixed!

The fix is included in the v2.0a1 pre-release of Lightkurve v2.0. You can install it by adding --pre to pip, i.e.: !pip install lightkurve --upgrade --pre

(Note: the alpha pre-release of v2.0 may likely break code in other ways. See CHANGES.rst for a summary of major changes.)

2reactions
barentsencommented, Jul 21, 2020

@astrobel @brackham Thank you for providing these additional examples. They will be very useful to add as unit tests.

I hear you loud and clear! We need to fix this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Searching & downloading Kepler, K2, and TESS data
By default, all available missions will be returned. We will start with the case of searching for a Kepler target using its Kepler...
Read more >
Download Options for Kepler Data and Catalogs - MAST Archive
For individual files, both FTP and HTTP can be used to download Kepler data ... These programs accept several parameters for specifying ID...
Read more >
Loading multiple datasets on start up · Issue #172 - GitHub
However, I'm having trouble loading two sets of data in componentDidM... ... helper to convert csv file into kepler.gl structure {fields, ...
Read more >
How to Use the Interactive Time Series Viewer
Search by Kepler ID Number. From the NASA Exoplanet Archive home page, click the Kepler Light Curves link to view the Exoplanet Transit...
Read more >
Two Ways to Get Kepler Light Curves - NASA
As an example, let's create a light curve for Kepler-10. ... Put 11904151 into the box labeled Kepler Id. Click on View; Now...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found