sbmlsim.simulation.scan

Scan simulation.

Allows scans over other simulations.

Module Contents

Classes

ScanSim

A scan simulation over another AbstractSim.

Attributes

logger

ureg

sbmlsim.simulation.scan.logger[source]
class sbmlsim.simulation.scan.ScanSim(simulation, dimensions=None, mapping=None)[source]

Bases: sbmlsim.simulation.AbstractSim

A scan simulation over another AbstractSim.

FIXME: probably not necessary to make this a simulation.

Parameters
__repr__(self)[source]

Get representation.

Return type

str

dimensions(self)[source]

Get dimensions.

Return type

List[sbmlsim.simulation.Dimension]

get_dimension(self, key)[source]

Get dimension by key.

Parameters

key (str) –

Return type

sbmlsim.simulation.Dimension

indices(self)[source]

Get indices of all combinations.

add_model_changes(self, model_changes)[source]

Add model changes to first timecourse.

Parameters

model_changes (Dict) –

Return type

None

normalize(self, uinfo)[source]

Normalize units in scan.

Requires normalization of timecourse simulation as well as all dimensions in the scan.

Parameters

uinfo (sbmlsim.units.UnitsInformation) –

to_simulations(self)[source]

Flatten the scan to individual simulations.

Here the changes are appended. Scan should be normalized before calling this function. Necessary to track the results.

sbmlsim.simulation.scan.ureg[source]