Skip to content

Commit

Permalink
default_initial_values
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jan 10, 2025
1 parent dd3a388 commit 473f176
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spynnaker/pyNN/models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,23 @@ class UsesDefaults(object):
@abstractmethod
def default_parameters(self):
"""
The default None initial values in the init
Will be filled in with the parameters in the init by @defaults
It will all values with a default value expect those declared with
@default_initial_values
"""

@property
@abstractmethod
def default_initial_values(self):
"""
The default values of the state values.
Formal PyNN specifies that these should be set using
initial_values not cell_params
"""

def _check_args(
args_to_find: FrozenSet[str], default_args: List[str],
Expand Down

0 comments on commit 473f176

Please sign in to comment.