Skip to content

Commit 212f072

Browse files
committed
Make the error message more helpful when using non-zero dendritic_delay_fraction with pyNN.brian2 (cf #803)
1 parent 1a1ce5c commit 212f072

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyNN/brian2/standardmodels/synapses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def __init__(self, timing_dependence=None, weight_dependence=None,
124124
if dendritic_delay_fraction != 0:
125125
raise ValueError("The pyNN.brian2 backend does not currently support "
126126
"dendritic delays: for the purpose of STDP calculations "
127-
"all delays are assumed to be axonal.")
127+
"all delays are assumed to be axonal. "
128+
"Set dendritic_delay_fraction=0 to avoid this error message.")
128129
# could perhaps support axonal delays using parrot neurons?
129130
super(STDPMechanism, self).__init__(timing_dependence, weight_dependence,
130131
voltage_dependence, dendritic_delay_fraction,

0 commit comments

Comments
 (0)