From e8ce33831a948319b9bd062f2f28b24474aec034 Mon Sep 17 00:00:00 2001 From: Will Waalkes Date: Sat, 20 Jan 2024 17:29:57 -0700 Subject: [PATCH] Update mcmc.rst Updates to reflect updated lightkurve --- docs/fleck/bayes/mcmc.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/fleck/bayes/mcmc.rst b/docs/fleck/bayes/mcmc.rst index e26886b..ce3a652 100644 --- a/docs/fleck/bayes/mcmc.rst +++ b/docs/fleck/bayes/mcmc.rst @@ -36,12 +36,12 @@ Next we resolve the target coordinates using astropy, and download its light curve using ``lightkurve``'s handy method:: coord = SkyCoord.from_name('V1298 Tau') - slcf = search_lightcurve(coord, mission='K2') - - lc = slcf.download_all() - pdcsap = lc.PDCSAP_FLUX.stitch() - - time = pdcsap.time + slcf = search_lightcurve(coord, author='K2') + + lc = slcf.download_all(flux_column='pdcsap_flux') + pdcsap = lc.stitch() + + time = pdcsap.time.value flux = pdcsap.flux notnanflux = ~np.isnan(flux)