From 8ed76f5feb35afbc9fe1a2486d559b375c01a29a Mon Sep 17 00:00:00 2001 From: Sebastian Junges Date: Mon, 8 Jun 2020 16:23:13 -0700 Subject: [PATCH] fix has_choice_labelling(), which did not return anything --- src/storage/model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/model.cpp b/src/storage/model.cpp index d470ba5..74d8516 100644 --- a/src/storage/model.cpp +++ b/src/storage/model.cpp @@ -169,7 +169,7 @@ void define_sparse_model(py::module& m) { // Models with double numbers py::class_, std::shared_ptr>, ModelBase> model(m, "_SparseModel", "A probabilistic model where transitions are represented by doubles and saved in a sparse matrix"); model.def_property_readonly("labeling", &getLabeling, "Labels") - .def("has_choice_labeling", [](SparseModel const& model) {model.hasChoiceLabeling();}, "Does the model have an associated choice labelling?") + .def("has_choice_labeling", [](SparseModel const& model) {return model.hasChoiceLabeling();}, "Does the model have an associated choice labelling?") .def_property_readonly("choice_labeling", [](SparseModel const& model) {return model.getChoiceLabeling();}, "get choice labelling") .def("has_choice_origins", [](SparseModel const& model) {return model.hasChoiceOrigins();}, "has choice origins?") .def_property_readonly("choice_origins", [](SparseModel const& model) {return model.getChoiceOrigins();})