This is a simple script for calculating Bayesian Generalized Lomb-Scargle periodogram with linear Trend. The regression model includes a harmonic component, offset and linear trend with Gaussian independent noise. The detailed model specification can be found from the paper. The main part of the code is in BGLST.py and the sample usage can be found from example.py.
For related studies please refer to Mortier et al. 2015 and Feng el al. 2017, where in the latter paper a more general model with correlated noise was introduced. This library can be found from https://github.com/phillippro/Agatha.