neat.CompartmentFitter.fit_syn_rescale¶
- CompartmentFitter.fit_syn_rescale(c_loc_arg, s_loc_arg, comp_inds, g_syns, e_revs, fit_impedance=False, channel_names=None)[source]¶
Computes the rescaled conductances when synapses are moved to compartment locations, assuming a given average conductance for each synapse.
- Parameters:
c_loc_arg (list of locations or string (see documentation of) –
MorphTree.convert_loc_arg_to_locs()for details) The compartment locationss_loc_arg (list of locations or string (see documentation of) –
MorphTree.convert_loc_arg_to_locs()for details) The synapse locationscomp_inds (list or numpy.array of ints) – for each location in [s_loc_arg], gives the index of the compartment location in [c_loc_arg] 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
- Returns:
g_resc – The rescale values for the synaptic weights
- Return type:
numpy.array of floats