original_docstring: 
      Calculates the log likelihood of a transiting planet scenario by
      comparing a simulated light curve and the TESS light curve.
      Args:
          time (numpy array): Time of each data point
                              [days from transit midpoint].
          flux (numpy array): Normalized flux of each data point.
          sigma (float): Normalized flux uncertainty.
          R_p (float): Planet radius [Earth radii].
          P_orb (float): Orbital period [days].
          inc (float): Orbital inclination [degrees].
          a (float): Semimajor axis [cm].
          R_s (float): Star radius [Solar radii].
          u1 (float): 1st coefficient in quadratic limb darkening law.
          u2 (float): 2nd coefficient in quadratic limb darkening law.
          companion_fluxratio (float): Proportion of flux provided by
                                       the unresolved companion.
          companion_is_host (bool): True if the transit is around the
                                    unresolved companion and False if
                                    it is not.
      Returns:
          Log likelihood (float).
      
docstring: Calculates the log likelihood of a transiting planet scenario by
  comparing a simulated light curve and the TESS light curve.
docstring_tokens: Calculates the log likelihood of a transiting planet scenario by comparing a simulated light curve and the TESS light curve .
code: def lnL_TP(time: np.ndarray, flux: np.ndarray, sigma: float, R_p: float,
             P_orb: float, inc: float, a: float, R_s: float,
             u1: float, u2: float, companion_fluxratio: float = 0.0,
             companion_is_host: bool = False):
      """
      Calculates the log likelihood of a transiting planet scenario by
      comparing a simulated light curve and the TESS light curve.
      Args:
          time (numpy array): Time of each data point
                              [days from transit midpoint].
          flux (numpy array): Normalized flux of each data point.
          sigma (float): Normalized flux uncertainty.
          R_p (float): Planet radius [Earth radii].
          P_orb (float): Orbital period [days].
          inc (float): Orbital inclination [degrees].
          a (float): Semimajor axis [cm].
          R_s (float): Star radius [Solar radii].
          u1 (float): 1st coefficient in quadratic limb darkening law.
          u2 (float): 2nd coefficient in quadratic limb darkening law.
          companion_fluxratio (float): Proportion of flux provided by
                                       the unresolved companion.
          companion_is_host (bool): True if the transit is around the
                                    unresolved companion and False if
                                    it is not.
      Returns:
          Log likelihood (float).
      """
      model = simulate_TP_transit(
          time, R_p, P_orb, inc, a, R_s, u1, u2,
          companion_fluxratio, companion_is_host
          )
      return 0.5*(np.sum((flux-model)**2 / sigma**2))
code_tokens: def lnL_TP ( time : np . ndarray , flux : np . ndarray , sigma : float , R_p : float , P_orb : float , inc : float , a : float , R_s : float , u1 : float , u2 : float , companion_fluxratio : float = 0.0 , companion_is_host : bool = False ) : model = simulate_TP_transit ( time , R_p , P_orb , inc , a , R_s , u1 , u2 , companion_fluxratio , companion_is_host ) return 0.5 * ( np . sum ( ( flux - model ) ** 2 / sigma ** 2 ) )
short_docstring: Calculates the log likelihood of a transiting planet scenario by
  comparing a simulated light curve and the TESS light curve.
short_docstring_tokens: Calculates the log likelihood of a transiting planet scenario by comparing a simulated light curve and the TESS light curve .
comment: """
      Calculates the log likelihood of a transiting planet scenario by
      comparing a simulated light curve and the TESS light curve.
      Args:
          time (numpy array): Time of each data point
                              [days from transit midpoint].
          flux (numpy array): Normalized flux of each data point.
          sigma (float): Normalized flux uncertainty.
          R_p (float): Planet radius [Earth radii].
          P_orb (float): Orbital period [days].
          inc (float): Orbital inclination [degrees].
          a (float): Semimajor axis [cm].
          R_s (float): Star radius [Solar radii].
          u1 (float): 1st coefficient in quadratic limb darkening law.
          u2 (float): 2nd coefficient in quadratic limb darkening law.
          companion_fluxratio (float): Proportion of flux provided by
                                       the unresolved companion.
          companion_is_host (bool): True if the transit is around the
                                    unresolved companion and False if
                                    it is not.
      Returns:
          Log likelihood (float).
      """