neat.CompartmentFitter.fit_capacitance¶
- CompartmentFitter.fit_capacitance(fit_arg, inds=[0], check_fit=True, force_tau_m_fit=False, pprint=False, pplot=False)[source]¶
Fit the capacitances of the model to the largest SOV time scale
- Parameters:
fit_arg (see docstring of CompartmentFitter.convert_fit_args()) – Specifying the fit that is being performed.
inds (list of int (optional, defaults to
[0])) – indices of eigenmodes used in the fit. Default is [0], indicating the largest eigenmodecheck_fit (bool (optional, default
True)) – Check whether the largest eigenmode of the reduced model is within tolerance of the largest eigenmode of the full tree. If not, capacitances are set to mach membrane time scaleforce_tau_m_fit (bool (optional, default
False)) – force capacitance fit through membrance time scale matchingpprint (bool (optional, defaults to
False)) – whether to print informationpplot (bool (optional, defaults to
False)) – whether to plot the eigenmode timescales
- Returns:
neat.CompartmentTree – The compartmenttree that is in the process of being fitted.
list of <neat.MorphLoc> – The corresponding list of fit locations.