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

Bug when using stochastic variable xi #19

Open
kjohnsen opened this issue Jul 5, 2022 · 0 comments
Open

Bug when using stochastic variable xi #19

kjohnsen opened this issue Jul 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kjohnsen
Copy link
Member

kjohnsen commented Jul 5, 2022

CLEOSim's adding coordinates appears to run into problems trying to re-create the xi variable (since I just copy-and-pasted code from Brian to create the x, y, and z variables)

Nathan's experience:

I caught another cleosim/Brian2 interaction bug while working on getting the Wilmes and Clopath simulation going. Brian2 uses the name "xi" as a special variable for white noise https://brian2.readthedocs.io/en/stable/user/equations.html. For some reason, in cleosim utilities, you redefine xi again, the same way Brian2 does. This creates the error: KeyError: "The name 'xi' is already present in the variables dictionary.". Adding a suffix (as Brian2 allows for) to the xi name, still gets the error again. (For instance I renamed xi to xi_model and got KeyError: "The name 'xi_model' is already present in the variables dictionary.")
...
This bug was not showing up when I was just putting the brian2 network into a cleosim sim, but is now showing up that I am assigning coordinates using assign_coords_rand_rect_prism

Look at # Stochastic variables in utilities.py

@kjohnsen kjohnsen added the bug Something isn't working label Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant