This implementation of a transmission spectroscopy experiment is based on the paper "Robust Gaussian Process Regression with Huber Likelihood." It modifies the code provided by Gibson et al. (2012), which introduces the use of a Huber likelihood function to effectively model observed data, including measurements from the first orbit.
Reference: Gibson, N. P., Aigrain, S., Roberts, S., Evans, T. M., Osborne, M., & Pont, F. (2012). A Gaussian process framework for modelling instrumental systematics: application to transmission spectroscopy. Monthly notices of the royal astronomical society, 419(3), 2683-2694.