Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/exoplanet/light_curves/secondary_eclipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

__all__ = ["SecondaryEclipseLightCurve"]

import numpy as np
from theano.tensor import cos

from ..utils import as_tensor_variable
from .limb_dark import LimbDarkLightCurve

Expand Down Expand Up @@ -38,6 +41,8 @@ def get_light_curve(
order=0,
use_in_transit=None,
light_delay=False,
reflected=False,
lag=0,
):
r = as_tensor_variable(r)
orbit2 = orbit._flip(r)
Expand All @@ -64,5 +69,12 @@ def get_light_curve(

k = r / orbit.r_star
flux_ratio = self.surface_brightness_ratio * k ** 2
if reflected:
phase = (t - orbit2.t0) / orbit2.period % 1
phase_curve = cos(2 * phase * np.pi + lag)[:, None]
lc2_w_phase_curve = (lc2) + phase_curve * 0 ** (-lc2)
return (lc1 + lc2_w_phase_curve * flux_ratio + flux_ratio) / (
1 + flux_ratio
)

return (lc1 + flux_ratio * lc2) / (1 + flux_ratio)