1- """Example shows basic model simulations and plotting with scan.
2- """
1+ """Example shows basic model simulations and plotting with scan."""
2+
33import numpy as np
44
55from sbmlsim .resources import REPRESSILATOR_SBML
66from sbmlsim .simulation import Dimension , ScanSim , Timecourse , TimecourseSim
7- from sbmlsim .simulator import SimulatorSerialRR
8- from sbmlsim .xresult import XResult
7+ from sbmlsim .simulator import SimulatorSerial
8+ from sbmlsim .result import XResult
99
1010
1111def run_scan0d () -> XResult :
1212 """Perform a parameter 0D scan, i.e., simple simulation"""
13- simulator = SimulatorSerialRR .from_sbml (sbml_path = REPRESSILATOR_SBML )
13+ simulator = SimulatorSerial .from_sbml (sbml_path = REPRESSILATOR_SBML )
1414
1515 scan0d = ScanSim (
1616 simulation = TimecourseSim (
@@ -30,7 +30,7 @@ def run_scan1d() -> XResult:
3030
3131 Scanning a single parameter.
3232 """
33- simulator = SimulatorSerialRR .from_sbml (sbml_path = REPRESSILATOR_SBML )
33+ simulator = SimulatorSerial .from_sbml (sbml_path = REPRESSILATOR_SBML )
3434
3535 scan1d = ScanSim (
3636 simulation = TimecourseSim (
@@ -55,7 +55,7 @@ def run_scan1d() -> XResult:
5555
5656def run_scan2d () -> XResult :
5757 """Perform a parameter scan"""
58- simulator = SimulatorSerialRR .from_sbml (sbml_path = REPRESSILATOR_SBML )
58+ simulator = SimulatorSerial .from_sbml (sbml_path = REPRESSILATOR_SBML )
5959
6060 scan2d = ScanSim (
6161 simulation = TimecourseSim (
@@ -85,7 +85,7 @@ def run_scan2d() -> XResult:
8585
8686def run_scan1d_distribution () -> XResult :
8787 """Perform a parameter scan by sampling from a distribution"""
88- simulator = SimulatorSerialRR .from_sbml (sbml_path = REPRESSILATOR_SBML )
88+ simulator = SimulatorSerial .from_sbml (sbml_path = REPRESSILATOR_SBML )
8989
9090 scan1d = ScanSim (
9191 simulation = TimecourseSim (
0 commit comments