Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lightkurve errors in the MCMC example #11

Open
will-waalkes opened this issue Jan 19, 2024 · 2 comments
Open

lightkurve errors in the MCMC example #11

will-waalkes opened this issue Jan 19, 2024 · 2 comments

Comments

@will-waalkes
Copy link
Contributor

Running the MCMC example (https://fleck.readthedocs.io/en/latest/fleck/bayes/mcmc.html) and there are issues with lightkurve.

search_lightcurvefile() is deprecated and needs to be changed to search_lightcurve()

Also some issue with the files downloaded in the example:

these few lines

coord = SkyCoord.from_name('V1298 Tau')
slcf = search_lightcurve(coord, mission='K2')
lc = slcf.download_all()

result in this error
LightkurveError: Data product f/Users/wiwa8630/.lightkurve/cache/mastDownload/HLSP/hlsp_k2sc_k2_llc_210818897-c04_kepler_v2_lc/hlsp_k2sc_k2_llc_210818897-c04_kepler_v2_lc.fits of type K2SC is not supported in this version of Lightkurve.

@will-waalkes
Copy link
Contributor Author

I can fix the first part in the docs but I'm unsure about the LightkurveError.

@bmorris3
Copy link
Owner

If you print slcf from your example, you'll see the files that you've retrieved:
Screen Shot 2024-01-18 at 20 59 19
The problem is that when the example code was written, there were fewer options available for download. Some of the newer files don't work in lightkurve.

You can fix this if you add the author kwarg to search_lightcurve. The docs were written with the data that you'd get from search_lightcurve(coord, mission='K2', author='K2').

Want to make a PR to fix that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants