Browse Source

Set_up

Former-commit-id: 5cbfbb3e43
tempestpy_adaptions
Mavo 9 years ago
parent
commit
395fabe867
  1. 16
      stormpy/src/core/core.cpp
  2. 5
      stormpy/tests/core/test_core.py

16
stormpy/src/core/core.cpp

@ -6,11 +6,21 @@
// Thin wrapper for initializing
void setupStormLib(std::string const& args) {
// storm::utility::setUp();
// storm::settings::SettingsManager::manager().setFromString(args);
storm::utility::setUp();
storm::settings::SettingsManager::manager().setFromString(args);
}
void define_core(py::module& m) {
m.def("set_up", &setupStormLib);
m.def("set_up", &setupStormLib, "Initialize Storm");
m.def("parse_formulae", storm::parseFormulasForProgram, "Parse formula for program");
m.def("parse_program", storm::parseProgram, "Parse program");
//m.def("build_model", buildModel, return_value_policy<return_by_value>());
//m.def("build_model_from_prism_program", storm::buildSymbolicModel<double>);
//m.def("build_parametric_model_from_prism_program", storm::buildSymbolicModel<storm::RationalFunction>);
}

5
stormpy/tests/core/test_core.py

@ -0,0 +1,5 @@
import stormpy
class TestCore:
def test_init(self):
stormpy.set_up("")
Loading…
Cancel
Save