Skip to content

Commit

Permalink
likelihood evaluators: fix missing Sigma property in python binding
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Mar 20, 2024
1 parent f358072 commit 5e7c021
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ void InitEval(py::module_ &m)
.def(py::init<Operon::Problem&, TDispatch const&>());

py::class_<TGaussEvaluator, TEvaluator>(m, "GaussianLikelihoodEvaluator")
.def(py::init<Operon::Problem&, TDispatch const&>());
// .def_property("Sigma", nullptr /*get*/ , &TMDLEvaluator::SetSigma /*set*/);;
.def(py::init<Operon::Problem&, TDispatch const&>())
.def_property("Sigma", &TGaussEvaluator::Sigma , &TGaussEvaluator::SetSigma /*set*/);;

py::class_<TPoissonEvaluator, TEvaluator>(m, "PoissonLikelihoodEvaluator")
.def(py::init<Operon::Problem&, TDispatch const&>());
// .def_property("Sigma", nullptr /*get*/ , &TMDLEvaluator::SetSigma /*set*/);
.def(py::init<Operon::Problem&, TDispatch const&>())
.def_property("Sigma", &TPoissonEvaluator::Sigma , &TPoissonEvaluator::SetSigma /*set*/);
}

0 comments on commit 5e7c021

Please sign in to comment.