odynn.csimul module¶
-
odynn.csimul.
simul
(t, i_injs, pars=None, synapses={}, gaps={}, circuit=None, n_out=[0], suffix='', show=False, save=True, labels=None)[source]¶ Simulate a circuit with input current i_injs and return the outputs of neurons contained in n_out
Parameters: - t (ndarray) – time
- i_injs (ndarray) – input currents of shape [time, batch, neuron]
- pars (dict or list) – parameters for the neurons
- synapses (dict or list) – parameters of the chemical synapses
- gaps (dict or list) – parameters of the gap junctions
- circuit( – obj: Circuit): if not None, ignore the 3 previous arguments
- n_out (list) – neurons which output have to be saved
- suffix (str) – suffix for the plots
- show (bool) – If True, show the plot
- save (bool) – If True, save the plot
- labels – labels for the circuit’s neurons
Returns: measurements as a list [time, input currents, [voltage(, calcium)]]
Return type: list