Skip to content

Commit

Permalink
add explicit check when converting MDP to DTMC
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Andriushchenko committed Feb 6, 2024
1 parent ccb4e81 commit aa4b37c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paynt/quotient/quotient.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def build_with_second_coloring(self, family, main_coloring, main_family):
def mdp_to_dtmc(mdp):
tm = mdp.transition_matrix
tm.make_row_grouping_trivial()
assert tm.nr_columns == tm.nr_rows, "expected transition matrix without non-trivial row groups"
components = stormpy.storage.SparseModelComponents(tm, mdp.labeling, mdp.reward_models)
dtmc = stormpy.storage.SparseDtmc(components)
return dtmc
Expand Down

0 comments on commit aa4b37c

Please sign in to comment.