Browse Source

Minor improvements

refactoring
Matthias Volk 5 years ago
parent
commit
5ae552ee59
  1. 2
      src/dft/dft.cpp
  2. 1
      tests/storage/test_state_generation.py

2
src/dft/dft.cpp

@ -16,7 +16,7 @@ void define_dft(py::module& m) {
// DFT class // DFT class
py::class_<DFT<double>, std::shared_ptr<DFT<double>>>(m, "DFT", "DFT")
py::class_<DFT<double>, std::shared_ptr<DFT<double>>>(m, "DFT", "Dynamic Fault Tree")
.def("nr_elements", &DFT<double>::nrElements, "Total number of elements") .def("nr_elements", &DFT<double>::nrElements, "Total number of elements")
.def("nr_be", &DFT<double>::nrBasicElements, "Number of basic elements") .def("nr_be", &DFT<double>::nrBasicElements, "Number of basic elements")
.def("nr_dynamic", &DFT<double>::nrDynamicElements, "Number of dynamic elements") .def("nr_dynamic", &DFT<double>::nrDynamicElements, "Number of dynamic elements")

1
tests/storage/test_state_generation.py

@ -67,7 +67,6 @@ def test_knuth_yao_die():
number_states += 1 number_states += 1
valuation = generator.current_state_to_valuation() valuation = generator.current_state_to_valuation()
print(valuation)
assert valuation.integer_values[s_variable] <= 7 assert valuation.integer_values[s_variable] <= 7
assert generator.current_state_satisfies(upper_bound_invariant) assert generator.current_state_satisfies(upper_bound_invariant)

Loading…
Cancel
Save