-
Notifications
You must be signed in to change notification settings - Fork 45
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
Initialize state variables and access buffer information #334
Comments
Hello, 2: What do you mean exactly? You should, with the latest versions, be able to check buffers for their value in standard if constructs. Current buffers are effectively typed as pA and spike buffers as real. @DimitriPlotnikov might have more insight into this. |
@AliceGem Could you elaborate on how and why you use the fact that a current buffer is empty or not as a condition, so that we can make sure this is implemented sensibly in NESTML? |
@PTraeder Thank you, the problem with the first question is solved, it works now and the error I got was not linked with the initialization. |
@AliceGem Regarding your actual question:
|
@DimitriPlotnikov @ingablundell |
@AliceGem I still don't quite understand what you are trying to do. Is I_shape supposed to be your synaptic current. Is R some kind of constant or does it have something to do with the current. What we would normaly do is declare some kind of "shape" function which is time dependent. For instance the "alpha" function and then define synaptic input as the convolution of the shape function with the values in the current buffer. I am not quite sure if your "I_shape" refers to what our shape function is or to what our convolution of the shape function with the values in the current buffer. |
Closing as this will be covered by #588. |
Dear NESTML community,
I have 2 questions on NESTML use:
Is there any possibility to initialize a state variable to a parameter value so that I can modify the initialization value in NEST for different types of neurons? For example, I have the threshold potential as a state variable and the initialization value is different for different neuron types, but if I define it as a parameter and use it in the state block (e.g.: in the 'state' block: 'V_th mV = V_th_init'; in the 'parameters' block: V_th_init mV = -70.0mV), I receive an error.
Is there any built-in function to check if a buffer is empty? For example, how can I check if the currents' buffer is empty to use it as a condition?
Thanks a lot!
The text was updated successfully, but these errors were encountered: