Skip to content

simulation.scan

Scan simulation.

Allows scans over other simulations.

ScanSim

ScanSim(simulation, dimensions=None, mapping=None)

Bases: AbstractSim

A scan simulation over another AbstractSim.

FIXME: probably not necessary to make this a simulation.

Scan a simulation.

Parameters or initial conditions can be scanned. Multiple parameters will result in a multi-dimensional scan. If the changes should be applied to a later timecourse in the timecourse simulation the mapping dictionary can be used to map the changes of a given dimension on the respective timecourse index (starting from index 0). E.g., mapping = {dim_1: 1} will apply the changes of 'dim_1' on the second timecouse in the timecourse simulation.

:param simulation: simulation to scan over the given parameters :param scan: dictionary of parameters or conditions to scan :param mapping: map of changes to parts of simulations

get_dimension

get_dimension(key)

Get dimension by key.

indices

indices()

Get indices of all combinations.

add_model_changes

add_model_changes(model_changes)

Add model changes to first timecourse.

normalize

normalize(uinfo)

Normalize units in scan.

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

to_simulations

to_simulations()

Flatten the scan to individual simulations.

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