-
Notifications
You must be signed in to change notification settings - Fork 1
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
How to make Multiscale Adaptive Time constant neuron voltage between -65mV-10mV? #1
Comments
The original Kobayashi et al (2009) paper isn't clear about this. Their model equations indeed have an RMP of 0, but several of their analyses suggest they introduced an offset so that they could use biologically realistic reversal potentials. You should be able to fix the base model (equation 1) by replacing Note that the spike threshold is a function of |
Awesome, thanks for these leads @dmeliza, I will try them out today. |
I have to confess I actually couldn't figure it out, but I made a short term hack that gives me the desired effect: I couldn't find any code that contains the term I couldn't find a line of code that had all the terms: But I did find this block which I believe to be a threshold function: h = y[2] + y[3] + y[4] + w
if i > iref and y[0] > h:
y[2] += a1
y[3] += a2
iref = i + int(tref * dt)
spikes.append(i * dt) https://github.com/russelljjarvis/jit_hub/blob/main/matnu.py#L262-L265 Here is a notebook of what some of this stuff looks like in practice. Thanks so much for responding to this issue. |
Hi @dmeliza,
Thanks for writing the awesome MAT neuron model code. I am using the python versions of the code without the CPP core.
I have succeeded in applying a current injection to the neuron and measured the voltage response, however, I am finding that RMP is
0
, and the spike peak is at about10
. I am having trouble figuring out which parts of the code to change to force the membrane potential to be in a more biological plausible range.I am using numba jit to get model evaluation speeds close to C all while still in python.
I have a hunch that if I change some of the zeros in the impulse matrix to
-np.sqrt(vr)
, they would multiply out tovr
, but I still feel like that is the wrong way to do it.My adaption of your code is here:
https://github.com/russelljjarvis/jit_hub/blob/main/mat.py#L97-L107
@rgerkin
The text was updated successfully, but these errors were encountered: