Models module¶
Functions for model handling
- nest.lib.hl_api_models.CopyModel(existing, new, params=None)¶
Create a new model by copying an existing one.
- nest.lib.hl_api_models.GetDefaults(model, keys=None, output='')¶
Return defaults of the given model or recording backend.
- Parameters:
model (str) – Name of the model or recording backend
keys (str or list, optional) – String or a list of strings naming model properties. GetDefaults then returns a single value or a list of values belonging to the keys given.
output (str, optional) – Whether the returned data should be in a format (
output='json'
). Default is ‘’.
- Returns:
dict – A dictionary of default parameters.
type – If keys is a string, the corrsponding default parameter is returned.
list – If keys is a list of strings, a list of corrsponding default parameters is returned.
str – If output is
json
, returns parameters in JSON format.
- Raises:
- nest.lib.hl_api_models.SetDefaults(model, params, val=None)¶
Set defaults for the given model or recording backend.
New default values are used for all subsequently created instances of the model.
- nest.lib.hl_api_models.Models(mtype='all', sel=None)¶
Deprecated since 3.3.
Use
node_models
orsynapse_models
instead.
- nest.lib.hl_api_models.ConnectionRules()¶
Deprecated since 3.3.
Use
connection_rules
instead.