Browse Source

Initialize settings

Former-commit-id: 1f7a643559
tempestpy_adaptions
Mavo 9 years ago
committed by Matthias Volk
parent
commit
ab6b481d78
  1. 1
      stormpy/src/core/core.cpp
  2. 4
      stormpy/tests/core/test_core.py

1
stormpy/src/core/core.cpp

@ -4,6 +4,7 @@ void define_core(py::module& m) {
// Init
m.def("set_up", [](std::string const& args) {
storm::utility::setUp();
storm::settings::initializeAll("StoRM-Py", "stormpy");
storm::settings::SettingsManager::manager().setFromString(args);
}, "Initialize Storm", py::arg("arguments"));
}

4
stormpy/tests/core/test_core.py

@ -1,10 +1,10 @@
import stormpy
class TestCore:
def test_init(self):
stormpy.set_up("")
import stormpy
def test_pycarl(self):
import stormpy
import pycarl
import pycarl.formula
import pycarl.parse
Loading…
Cancel
Save