Search found 6 matches

by Nooshin
Mon Mar 29, 2021 9:28 am
Forum: Other questions
Topic: spFactor error: Zero Diagonal
Replies: 7
Views: 13666

Re: spFactor error: Zero Diagonal

Hi all,
I have the same problem. My model includes channel noise and I received the error “spFactor error: Zero Diagonal” during simulations. I am wondering how the problem can be solved
Thank you
by Nooshin
Tue Mar 23, 2021 7:01 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: calling a function from NMODL
Replies: 10
Views: 12143

Re: calling a function from NMODL

My code works well for single compartment model. But for a multicompartment model in which more than a section includes Kv1 mechanism, it only calculates noise (i.e. z1) for the last segment of the last compartment. I have for sec in h.allsec(): if h.ismembrane('Kv1',sec = sec): for seg in sec.allse...
by Nooshin
Mon Mar 22, 2021 6:57 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: calling a function from NMODL
Replies: 10
Views: 12143

Re: calling a function from NMODL

Thanks a lot. Appreciate it.
by Nooshin
Mon Mar 22, 2021 12:18 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: calling a function from NMODL
Replies: 10
Views: 12143

Re: calling a function from NMODL

Thank you for your help. I appreciate it. I tried to implement what you suggested, and it works. In the following code the callback is a wrapper python function and at each time step, z1 is calculated and transferred to the .mod file. The only problem is that at each time step I want my python code ...
by Nooshin
Thu Mar 18, 2021 9:21 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: calling a function from NMODL
Replies: 10
Views: 12143

Re: calling a function from NMODL

Hi all, Thank you very much for your responses. I am using the fixed step method. The code below is my potassium channel mod file. z1 is the noise and it is POINTER variable. At each time step, I want to have Python calculate z1 using alphan, betan, and n. NEURON { SUFFIX Kv1 USEION k READ ek WRITE ...
by Nooshin
Sat Mar 13, 2021 7:32 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: calling a function from NMODL
Replies: 10
Views: 12143

calling a function from NMODL

Hi Ted, I have a question about functions built into NMODL. I am trying to incorporate channel noise in the Hodgkin-Huxley equations. At each time step, I need to use the singular value decomposition (svd) function. It seems that svd function is not built into NMODL. I am wondering if and how I can ...