class reset_layer_pars(pars, layer_keys=None, force=False)[source]#

Helper function to set layer-specific parameters. If layer keys are not provided, then set them based on the population type. This function is not usually called directly by the user, although it can sometimes be used to fix layer key mismatches (i.e. if the contact layers in the population do not match the parameters). More commonly, however, mismatches need to be fixed explicitly.

  • pars (dict) – the parameters dictionary

  • layer_keys (list) – the layer keys of the population, if available

  • force (bool) – reset the parameters even if they already exist