Closed PikaPei closed 6 months ago
Thanks for the question. The error is caused because you are using the joint equation while giving the parameters independently.
self.integral = bp.odeint(bp.JointEq(self.dvar1, self.dvar2), method="exp_auto")
One way to solve this issue is modifying your update
function as:
self.var1.value, self.var2.value = self.integral(self.var1, self.var2, t, dt=dt)
self.var1 += self.var1_pre.spike
self.var2 += self.var2_pre.spike
I see. It works now! Thank you for the helpful answer!
Hello!
I am new to BrainPy and find it a great simulation tool!
But when I played with it, I met some errors and couldn't find solutions in the documentation. I want to make two variables,
var1
andvar2
, each receiving spike inputs from distinctSpikeTimeGroups
. Each variable shows simple exponential decay dynamics with different time constants. I'm not sure if I'm doing something wrong, and I would appreciate any advice.Here is my code and my BrainPy version is
2.4.6.post5
,The error is:
Thank you!