Hi and wish everybody being healthy.
Why I get error runnign an example from Tutorial part 2 synapse:
from brian2 import *
start_scope()
eqs = '''
dv/dt = (I-v)/tau : 1
I : 1
tau : second
'''
G = NeuronGroup(2, eqs, threshold='v>1', reset='v = 0', method='exact')
G.I = [2, 0]
G.tau = [10, 100]*ms
# Comment these two lines out to see what happens without Synapses
S = Synapses(G, G, on_pre='v_post += 0.2')
S.connect(i=0, j=1)
M = StateMonitor(G, 'v', record=True)
run(100*ms)
File "t1.py", line 14, in <module>
S = Synapses(G, G, on_pre='v_post += 0.2')
File "/home/ziaee/.local/lib/python3.8/site-packages/brian2/synapses/synapses.py", line 856, in __init__
self._add_updater(argument, prepost, delay=pathway_delay,
File "/home/ziaee/.local/lib/python3.8/site-packages/brian2/synapses/synapses.py", line 1032, in _add_updater
updater = SynapticPathway(self, code, prepost, objname,
File "/home/ziaee/.local/lib/python3.8/site-packages/brian2/synapses/synapses.py", line 271, in __init__
self.queue = get_device().spike_queue(self.source.start, self.source.stop)
File "/home/ziaee/.local/lib/python3.8/site-packages/brian2/devices/device.py", line 498, in spike_queue
from brian2.synapses.cythonspikequeue import SpikeQueue
File "brian2/synapses/cythonspikequeue.pyx", line 1, in init brian2.synapses.cythonspikequeue
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
I am using brian ‘2.4.2’.