simrun
❭ sim_trial_to_cell_object
❭ simtrial_to_cell_object
simtrial_to_cell_object¶
-
simrun.sim_trial_to_cell_object.simtrial_to_cell_object(db, sim_trial_index, compute=
True
, allPoints=False
, scale_apical=None
, range_vars=None
, silent=True
, neuron_param_modify_functions=[]
, network_param_modify_functions=[]
, synapse_activation_modify_functions=[]
, additional_network_params=[]
, tStop=345
)¶ Recreate and resimulate a single simulation trial from parameter files and return the cell object.
This method also provides functionality to adapt the parameters of the cell, network, and synapse activation data before resimulating the trial. The network and neuron parameter modify functions should take the respective parameter dictionaries as input and return the modified dictionaries. Synapse activation modify functions should take the synapse activation data as input and return the modified data.
- Parameters:¶
db (
data_base.dataBase
) – A simrun-initialized database object.sim_trial_index (int) – Index of the simulation trial in the database.
range_vars (str | list) – Range variables to record.
scale_apical (callable, DEPRECATED) – Function to scale the apical dendrites.
allPoints (bool) – If True, skip \(d-\lambda\) segmentation and simulate at high resolution.
compute (bool) – If True, compute the simulation. Otherwise return the simulation-ready
Cell
object.tStop (float) – Stop time of the simulation.
neuron_param_modify_functions (list) – List of functions to modify the neuron parameters.
network_param_modify_functions (list) – List of functions to modify the network parameters.
synapse_activation_modify_functions (list) – List of functions to modify the synapse activation data.
silent (bool) – If True, suppress all output.
Deprecated since version 0.1.0: The scale_apical argument is deprecated and will be removed in a future version. Use the cell_modify_functions key in the Cell parameters file instead.
See also
simrun.sim_trial_to_cell_object.trial_to_cell_object()
to recreate a single simulation trial from parameter files instead of a database.See also
data_base.db_initializers.init_simrun_general
to initialize a database object from raw simrun output, i.e. a “simrun-initialized” database object.