neuroarch.na.NeuroArch.get
- NeuroArch.get(cls, name, data_source, **attr)[source]
Retrieve an object with name under data_source, either from cache or from database.
- Parameters:
cls (str) – Type of the Node to be retrieved.
name (str) – Name to be retrieved
data_source (models.DataSource or None) – The DataSource under which the unique object will be retrieved If None, the searched object is not bound to the DataSource.
attr (keyword arguments (optional)) – node attributes using key=value, currently not implemented
- Returns:
obj – The object retrieved
- Return type:
models.Node or subclass