simulation.scan¶
Scan simulation.
Allows scans over other simulations.
ScanSim
¶
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
normalize
¶
Normalize units in scan.
Requires normalization of timecourse simulation as well as all dimensions in the scan.
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.