code: def log_posterior_transit(theta, params, model, t, flux, err_flux, priorbounds):
      '''
      Evaluate posterior probability given proposed model parameters and
      the observed flux timeseries.
      '''
      lp = _log_prior_transit(theta, priorbounds)
      if not np.isfinite(lp):
          return -np.inf
      else:
          return lp + _log_likelihood_transit(theta, params, model, t, flux,
                                              err_flux, priorboundsf log_posterior_transit(theta, params, model, t, flux, err_flux, priorbounds):
      '''
      Evaluate posterior probability given proposed model parameters and
      the observed flux timeseries.
      '''
      lp = _log_prior_transit(theta, priorbounds)
      if not np.isfinite(lp):
          return -np.inf
      else:
          return lp + _log_likelihood_transit(theta, params, model, t, flux,
                                              err_flux, priorbounds)
docs: Evaluate posterior probability given proposed model parameters and
      the observed flux timeseries.