neat.CompartmentFitter.fitSynRescale¶
-
CompartmentFitter.
fitSynRescale
(c_locarg, s_locarg, comp_inds, g_syns, e_revs, fit_impedance=False, channel_names=None, recompute=False)[source]¶ Computes the rescaled conductances when synapses are moved to compartment locations, assuming a given average conductance for each synapse.
- Parameters
c_locarg (list of locations or string (see documentation of) –
MorphTree._convertLocArgToLocs()
for details) The compartment locationss_locarg (list of locations or string (see documentation of) –
MorphTree._convertLocArgToLocs()
for details) The synapse locationscomp_inds (list or numpy.array of ints) – for each location in [s_locarg], gives the index of the compartment location in [c_locarg] to which the synapse is assigned
g_syns (list or numpy.array of floats) – The average conductances for each synapse
e_revs (list or numpy.array of floats) – The reversal potential of each synapse
fit_impdedance (bool (optional, default False)) – Whether to also use the reproduction of the rescaled impedance matrix as target.
channel_names (list of str or None (default)) – List of ion channels to be included in impedance matrix calculation. None includes all ion channels
recompute (bool (defaults is False)) – Whether or not to recompute the impedance tree for this channel configuration
- Returns
g_resc – The rescale values for the synaptic weights
- Return type
numpy.array of floats