From 70232816b62c49285412777fdb30c5e3d5556b60 Mon Sep 17 00:00:00 2001 From: Sebastian Junges Date: Fri, 24 Nov 2017 18:24:16 +0100 Subject: [PATCH] printing initial states in example --- examples/06-getting-started.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/06-getting-started.py b/examples/06-getting-started.py index d656d7a..e8d1378 100644 --- a/examples/06-getting-started.py +++ b/examples/06-getting-started.py @@ -15,6 +15,8 @@ def example_getting_started_06(): print(model.model_type) for state in model.states: + if state.id in model.initial_states: + print(state) for action in state.actions: for transition in action.transitions: print("From state {}, with probability {}, go to state {}".format(state, transition.value(), transition.column))