Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpikeGenerator problem #146

Open
marco-cyt opened this issue Mar 28, 2022 · 2 comments
Open

SpikeGenerator problem #146

marco-cyt opened this issue Mar 28, 2022 · 2 comments

Comments

@marco-cyt
Copy link

Hello, I tried to use a SpikeGeneratorGroup as input in my Brian2genn (version= 1.6) simulation. But, I got an error. So, I tried to run a simple script to test if the SpikeGeneratorGroup was actually working. As a result, I also got an error with the simple script. On my computer, I can run the simulation using Brian2 (version = 2.5.0.3, device = cpp_standalone) , and I can even run simulations in Brian2genn if I do not use any SpikeGeneratorGroup.

Note: I am running the simulations in an Ubuntu 18.4 WSL on Windows 10.

This is the code of the simple simulation:

from brian2 import *
import brian2genn
set_device('genn', directory='simple_spikesource', use_GPU=False, debug=True)
G = NeuronGroup(10, 'v:1')
indices = np.array([3, 2, 1, 1, 4, 5])
times = np.array([6, 5, 4, 3, 3, 1]) * ms
SG = SpikeGeneratorGroup(10, indices, times)
S = Synapses(SG, G, on_pre='v+=1')
S.connect(i = 0, j=0)
run(7*ms)

I am attaching the error message in a txt file. I do not understand the error message. I hope you can help me to guess what could be the problem.

error.txt

@marco-cyt marco-cyt changed the title SpikeGeneretor problem SpikeGenerator problem Mar 28, 2022
@kernfel
Copy link
Contributor

kernfel commented Mar 30, 2022

Can confirm the noted error on brian2genn==1.6, but it works on master. @marco-cyt, you'll want to clone this repo, cd into it, and pip install -e . it.

@mstimberg
Copy link
Member

Hi everyone. Just for some explication: brian2genn 1.6 was released before brian2 2.5 came out, and is not compatible with it. In the future, we will make this clear in the dependencies, i.e. brian2genn will not work with versions that are newer than the one it was created for. But the real problem is that we still haven't done a 1.7 release, since as @kernfel noted, the current development branch of brian2genn has been compatible with Brian 2.5 for quite a while! I'll try to do this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants