From ba3a8fd401d98bb3ffb452206c0628476216bbc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Faria?= Date: Tue, 21 Nov 2023 10:29:44 +0100 Subject: [PATCH] add offsets_prior to GPmodel (fixes #5) --- src/kima/GPmodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kima/GPmodel.cpp b/src/kima/GPmodel.cpp index 190f372..28bd8fd 100644 --- a/src/kima/GPmodel.cpp +++ b/src/kima/GPmodel.cpp @@ -825,6 +825,10 @@ NB_MODULE(GPmodel, m) { [](GPmodel &m) { return m.cubic_prior; }, [](GPmodel &m, distribution &d) { m.cubic_prior = d; }, "Prior for the cubic coefficient of the trend") + .def_prop_rw("offsets_prior", + [](GPmodel &m) { return m.offsets_prior; }, + [](GPmodel &m, distribution &d) { m.offsets_prior = d; }, + "Common prior for the between-instrument offsets") // priors for the GP hyperparameters .def_prop_rw("eta1_prior",