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 about 10. 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 to vr, 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
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