Skip to content

Instantly share code, notes, and snippets.

import lightkurve as lk
tpf_file = lk.search_targetpixelfile("TIC 261136679", sector=1).download()
with tpf_file.hdu as hdu:
tpf = hdu[1].data
tpf_hdr = hdu[1].header
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import pymc3 as pm
import numpy as np
import exoplanet as xo
import theano.tensor as tt
with pm.Model() as simple_model:
period = pm.Flat("period", testval=10.0)
nu = pm.Flat("nu", testval=15)
import pymc3 as pm
import theano.tensor as tt
Ks=np.array([8.0,2.15])
with pm.Model() as model:
# Common "shared" orbital parameters
logK = pm.Uniform("logK",lower=np.log(0.5), upper=np.log(100.0), testval=np.log(Ks), shape=2)