Skip to content

Commit

Permalink
Make the error message more helpful when using non-zero dendritic_del…
Browse files Browse the repository at this point in the history
…ay_fraction with pyNN.brian2 (cf #803)
  • Loading branch information
apdavison committed Jun 17, 2024
1 parent 1a1ce5c commit 212f072
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyNN/brian2/standardmodels/synapses.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def __init__(self, timing_dependence=None, weight_dependence=None,
if dendritic_delay_fraction != 0:
raise ValueError("The pyNN.brian2 backend does not currently support "
"dendritic delays: for the purpose of STDP calculations "
"all delays are assumed to be axonal.")
"all delays are assumed to be axonal. "
"Set dendritic_delay_fraction=0 to avoid this error message.")
# could perhaps support axonal delays using parrot neurons?
super(STDPMechanism, self).__init__(timing_dependence, weight_dependence,
voltage_dependence, dendritic_delay_fraction,
Expand Down

0 comments on commit 212f072

Please sign in to comment.