-
Notifications
You must be signed in to change notification settings - Fork 94
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
Question #692
Comments
The version I use is brainpy 2.4.5 |
Thank you for your question. Indeed, in the documentation, it should be corrected from "post_val[post_ids[i]] += values" to "post_val[post_ids[j]] += values". We will make the necessary changes to the documentation as soon as possible. Regarding your second question, I am not quite clear about it. Could you provide the problematic code and specify which parameters should be modified to address the issue? Perhaps you could try upgrading brainpy to the latest version? pip install brainpy -U |
Thank you for answering my first question! |
I adjusted the time step of the model simulation and found that when the current strength is set to 0.280, the image could only show the first 5000 time points at most, no matter how long the time points I set was. That was, It could showed correctly all time steps if the time steps were set under 5000. |
I might also try upgrading brainpy😂 |
It seems I know what the issue is. Is your JAX version above 0.4.32? JAX introduced an asynchronous CPU scheduling mechanism in version 0.4.32, which can cause |
Could you please provide the specific hardware information of your device? It seems that my device has difficulty reproducing the error. |
The JAX version (also jaxlib) I used is 0.4.16. I ran this code on MacBook Pro, M2, macOS Sequoia 15.2. |
I changed |
I wanted to see how firing rate varies with the current strength, and it output like this😂. I printed the value of V[5000:10000] when the current strength was set at 0.280 and found that they were all NaN |
Thank you for your reply! It seems that I must update the version of brainpy to use this funciton, and I'll try it. |
When I went back to the orginal function |
Hello, I have a question about the function pre2post_event_sum. The documentation says
"The pre-to-post event-driven synaptic summation with CSR synapse structure.
When values is a scalar, this function is equivalent to
post_val = np.zeros(post_num)
post_ids, idnptr = pre2post
for i in range(pre_num):
if events[i]:
for j in range(idnptr[i], idnptr[i+1]):
post_val[post_ids[i]] += values"
But I wonder if “post_val[post_ids[i]] += values” was written incorrectly and should be changed to "post_val[post_ids[j]] += values".
The text was updated successfully, but these errors were encountered: