Browse Source

a bit better examples

refactoring
Sebastian Junges 5 years ago
parent
commit
da97ba1590
  1. 4
      examples/building_models/03-building-models.py
  2. 4
      examples/parametric_models/03-parametric-models.py

4
examples/building_models/03-building-models.py

@ -5,7 +5,7 @@ import stormpy.examples
import stormpy.examples.files import stormpy.examples.files
def example_building_models_01():
def example_building_models_03():
path = stormpy.examples.files.prism_pdtmc_brp path = stormpy.examples.files.prism_pdtmc_brp
prism_program = stormpy.parse_prism_program(path) prism_program = stormpy.parse_prism_program(path)
formula_str = "P=? [F s=5]" formula_str = "P=? [F s=5]"
@ -27,4 +27,4 @@ def example_building_models_01():
if __name__ == '__main__': if __name__ == '__main__':
example_building_models_01()
example_building_models_03()

4
examples/parametric_models/03-parametric-models.py

@ -7,6 +7,10 @@ import stormpy.examples
import stormpy.examples.files import stormpy.examples.files
def example_parametric_models_03(): def example_parametric_models_03():
if not config.storm_with_pars:
print("Support parameters is missing. Try building storm-pars.")
return
path = stormpy.examples.files.prism_dtmc_brp path = stormpy.examples.files.prism_dtmc_brp
prism_program = stormpy.parse_prism_program(path) prism_program = stormpy.parse_prism_program(path)

Loading…
Cancel
Save