Browse Source

simulator does not crash on dtmcs

refactoring
Sebastian Junges 4 years ago
parent
commit
e3467a4bb9
  1. 2
      lib/stormpy/simulator.py

2
lib/stormpy/simulator.py

@ -120,6 +120,8 @@ class SparseSimulator(Simulator):
return av_actions return av_actions
def nr_available_actions(self): def nr_available_actions(self):
if not self._model.is_nondeterministic_model:
return 1
return self._model.get_nr_available_actions(self._engine.get_current_state()) return self._model.get_nr_available_actions(self._engine.get_current_state())
def _report_state(self): def _report_state(self):

Loading…
Cancel
Save