From 175940b1ef10a4a18db4d44c5ee36d05fe58257e Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Tue, 2 Jan 2024 16:00:49 +0000 Subject: [PATCH] use supers synapse_structure --- .../timing_dependence/my_timing_dependence.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/python_models8/neuron/plasticity/stdp/timing_dependence/my_timing_dependence.py b/python_models8/neuron/plasticity/stdp/timing_dependence/my_timing_dependence.py index 718af47..6276ac5 100644 --- a/python_models8/neuron/plasticity/stdp/timing_dependence/my_timing_dependence.py +++ b/python_models8/neuron/plasticity/stdp/timing_dependence/my_timing_dependence.py @@ -16,8 +16,7 @@ class MyTimingDependence(AbstractTimingDependence): "_a_minus", "_a_plus", "_my_depression_parameter", - "_my_potentiation_parameter", - "_synapse_structure"] + "_my_potentiation_parameter",] NUM_PARAMETERS = 2 @@ -31,13 +30,13 @@ def __init__( A_plus=0.01, A_minus=0.01): + # TODO: Update to match the synapse structure in the C code + super().__init__(SynapseStructureWeightOnly()) + # TODO: Store any parameters self._my_potentiation_parameter = my_potentiation_parameter self._my_depression_parameter = my_depression_parameter - # TODO: Update to match the synapse structure in the C code - self._synapse_structure = SynapseStructureWeightOnly() - # Are these in the c code? self._a_plus = A_plus self._a_minus = A_minus @@ -118,12 +117,6 @@ def write_parameters( def get_parameter_names(self) -> List[str]: return ['my_potentiation_parameter', 'my_depression_parameter'] - @property - def synaptic_structure(self): - """ Get the synaptic structure of the plastic part of the rows - """ - return self._synapse_structure - @property def A_plus(self): return self._a_plus