Simulation Requirements
ReqPopHasAttr
#
Checks if population(s) contains the attribute(s) (parameters or variables)
Source code in CompNeuroPy/simulation_requirements.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
__init__(pop, attr)
#
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pop |
str or list of strings
|
population name(s) |
required |
attr |
str or list of strings
|
attribute name(s) |
required |
Source code in CompNeuroPy/simulation_requirements.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
run()
#
Checks if population(s) contains the attribute(s) (parameters or variables)
Raises:
Type | Description |
---|---|
ValueError
|
if population(s) does not contain the attribute(s) |
Source code in CompNeuroPy/simulation_requirements.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|