fleck icon indicating copy to clipboard operation
fleck copied to clipboard

lightkurve errors in the MCMC example

Open will-waalkes opened this issue 2 years ago • 2 comments

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 avatar Jan 19 '24 01:01 will-waalkes

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

will-waalkes avatar Jan 19 '24 01:01 will-waalkes

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?

bmorris3 avatar Jan 19 '24 02:01 bmorris3