simulation.timecourse¶
Definition of timecourses and timecourse simulations.
Timecourse
¶
Timecourse(
start,
end,
steps,
changes=None,
model_changes=None,
model_manipulations=None,
discard=False,
)
Bases: ObjectJSONEncoder
Simulation definition.
Definition of all information necessary to run a single timecourse simulation.
A single simulation consists of multiple changes which are applied, all simulations are performed and collected.
Changesets and selections are deep copied for persistence.
Create a time course definition for simulation.
Discarded simulations do not add time shifts, i.e. a pre-simulation does not increase the time of simulation.
:param start: start time :param end: end time :param steps: simulation steps :param changes: parameter and initial condition changes :param model_changes: model parameter and initial condition changes :param model_manipulations: model structure changes :param discard: discards results from simulations (e.g. pre-simulations)
strip_units
¶
Strip units from changes for parallel simulation.
All changes must be normalized before stripping !.
TimecourseSim
¶
Bases: AbstractSim
Timecourse simulation consisting of multiple concatenated timecourses.
In case of a single timecourse, only the single timecourse is executed.
Initialize timecourse sim.
:param timecourses: timecourses (or their dictionary representations); empty elements are removed :param selections: :param reset: complete reset of model :param time_offset: time shift of simulation
to_json
¶
Convert definition to JSON.
:param path: path for file, if None the JSON str is returned