Skip to content

Commit

Permalink
reverting to old light curve syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm committed Apr 25, 2021
1 parent d42a6d5 commit 54fb3c8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/lc-multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@

# The limb darkening
u = xo.QuadLimbDark("u")
star = xo.LimbDarkLightCurve(u[0], u[1])
star = xo.LimbDarkLightCurve(u)

# The radius ratio
log_approx_depth = pm.Normal(
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/quick-tess.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
pm.Deterministic("rho_circ", orbit.rho_star)

# Set up the mean transit model
star = xo.LimbDarkLightCurve(u[0], u[1])
star = xo.LimbDarkLightCurve(u)

def lc_model(t):
return mean + 1e3 * tt.sum(
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/tess.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def build_model(mask=None, start=None):
# Compute the model light curve
light_curves = pm.Deterministic(
"light_curves",
xo.LimbDarkLightCurve(u_star[0], u_star[1]).get_light_curve(
xo.LimbDarkLightCurve(u_star).get_light_curve(
orbit=orbit, r=r_pl, t=x[mask], texp=texp
)
* 1e3,
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/together.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def build_model(mask=None, start=None):
# Compute the model light curve
light_curves = pm.Deterministic(
"light_curves",
xo.LimbDarkLightCurve(u_star[0], u_star[1]).get_light_curve(
xo.LimbDarkLightCurve(u_star).get_light_curve(
orbit=orbit, r=r_pl, t=x[mask], texp=texp
)
* 1e3,
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/ttv.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
pm.Deterministic("ttvs_{0}".format(i), orbit.ttvs[i])

# The rest of this block follows the transit fitting tutorial
light_curves = xo.LimbDarkLightCurve(u[0], u[1]).get_light_curve(
light_curves = xo.LimbDarkLightCurve(u).get_light_curve(
orbit=orbit, r=r, t=t, texp=texp
)
light_curve = pm.math.sum(light_curves, axis=-1) + mean
Expand Down

0 comments on commit 54fb3c8

Please sign in to comment.