neat.CompartmentFitter.fit_model

CompartmentFitter.fit_model(loc_arg, fit_name='', alpha_inds=[0], use_all_channels_for_passive=True, pprint=False)[source]

Runs the full fit for a set of locations (the location are automatically extended with the bifurcation locs)

Parameters:
  • loc_arg (list of locations or string (see documentation of) – MorphTree.convert_loc_arg_to_locs() for details) The compartment locations

  • fit_name (string) – The name under which the fit will be stored. By default, the fit will not be stored.

  • alpha_inds (list of ints) – Indices of all mode time-scales to be included in the fit

  • use_all_channels_for_passive (bool (optional, default True)) – Uses all channels in the tree to compute coupling conductances

  • pprint (bool) – whether to print information

Returns:

  • neat.CompartmentTree – The compartmenttree that is fitted.

  • list of <neat.MorphLoc> – The corresponding list of fit locations.