Model Functions
compile_in_folder(folder_name, net=None, clean=False, silent=False)
#
Creates the compilation folder in annarchy_folders/ or uses existing ones. Compiles the current network.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
folder_name |
str
|
Name of the folder within annarchy_folders/ |
required |
net |
ANNarchy network
|
ANNarchy network. Default: None. |
None
|
clean |
bool
|
If True, the library is recompiled entirely, else only the changes since last compilation are compiled. Default: False. |
False
|
silent |
bool
|
Suppress output. Defaults to False. |
False
|
Source code in CompNeuroPy/model_functions.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
annarchy_compiled(net_id=0)
#
Check if ANNarchy network was compiled.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
net_id |
int
|
Network ID. Default: 0. |
0
|
Source code in CompNeuroPy/model_functions.py
37 38 39 40 41 42 43 44 45 46 47 48 |
|
get_full_model()
#
Return all current population and projection names.
Returns:
Name | Type | Description |
---|---|---|
model_dict |
dict
|
Dictionary with keys "populations" and "projections" and values lists of population and projection names, respectively. |
Source code in CompNeuroPy/model_functions.py
51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
cnp_clear(functions=True, neurons=True, synapses=True, constants=True)
#
Like clear with ANNarchy, but CompNeuroModel objects are also cleared.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
functions |
bool
|
If True, all functions are cleared. Default: True. |
True
|
neurons |
bool
|
If True, all neurons are cleared. Default: True. |
True
|
synapses |
bool
|
If True, all synapses are cleared. Default: True. |
True
|
constants |
bool
|
If True, all constants are cleared. Default: True. |
True
|
Source code in CompNeuroPy/model_functions.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
|