From 473f176bc8bd184bcbb61c9ad24951503f636ca5 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Fri, 10 Jan 2025 07:03:34 +0000 Subject: [PATCH] default_initial_values --- spynnaker/pyNN/models/defaults.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/spynnaker/pyNN/models/defaults.py b/spynnaker/pyNN/models/defaults.py index 418fd64777..8ff77f1619 100644 --- a/spynnaker/pyNN/models/defaults.py +++ b/spynnaker/pyNN/models/defaults.py @@ -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],