Search found 38 matches
- Sun Jun 28, 2020 2:05 pm
- Forum: NEURON + Python
- Topic: Error recording channel current by passing string to Vector.record
- Replies: 3
- Views: 565
- Sat Jun 20, 2020 1:42 am
- Forum: NEURON + Python
- Topic: Error recording channel current by passing string to Vector.record
- Replies: 3
- Views: 565
Error recording channel current by passing string to Vector.record
Hi, I am trying to plot voltage clamp currents of multiple channels for different mod files. For this I use Vector.record(). As there as multiple channels, I am passing a string to Vector.record(). As a test case, I tried it with hh channels. 'hh2' is same as hh with ik made a RANGE variable. channe...
- Sun Aug 04, 2019 1:07 pm
- Forum: Reaction-diffusion in NEURON
- Topic: Altering Total Concentration During a Simulation
- Replies: 2
- Views: 1192
Re: Altering Total Concentration During a Simulation
Hi, If you are interested in clamping concentration to a particular value using a mod mechanism, see this code: https://github.com/darshanmandge/Tools/tree/master/ConcClamp. Screenshot here: https://github.com/darshanmandge/Tools/blob/master/README.md (2. Ionic Concentration Clamp) Cheers, Darshan
- Tue Jun 04, 2019 7:55 pm
- Forum: Hot tips
- Topic: conversion units
- Replies: 5
- Views: 2829
Re: conversion units
Thank you for clearing these doubts!
- Mon Jun 03, 2019 1:33 am
- Forum: Hot tips
- Topic: conversion units
- Replies: 5
- Views: 2829
Re: conversion units
Hi, I have a doubt in mA/cm2 to nA conversion: if I want to convert the current density INA [mA/cm2] in nA I should divide the current in mA/cm2 by the factor (area*(0.01)): INA/(area*(0.01)) True, assuming that area is in units of um2. Shouldn't the current in mA/cm2 be multiplied by (area*0.01) to...
- Tue Mar 12, 2019 4:11 pm
- Forum: Adding new mechanisms and functions to NEURON
- Topic: NMODL Compile Error: Assertion failed!
- Replies: 10
- Views: 3764
Re: NMODL Compile Error: Assertion failed!
Thanks for the prompt reply and example of CONDUCTANCE keyword.
- Tue Mar 12, 2019 2:39 pm
- Forum: Adding new mechanisms and functions to NEURON
- Topic: NMODL Compile Error: Assertion failed!
- Replies: 10
- Views: 3764
Re: NMODL Compile Error: Assertion failed!
Thanks again for the elaborate explanation. So, if those statements (minf, ninf) are in BREAKPOINT, are they undergoing unnecessary recalculations? I guess by moving them to the DERIVATIVE block will save some simulation time which might be more evident in long or large-scale simulations, Also, I co...
- Tue Mar 12, 2019 1:52 am
- Forum: Adding new mechanisms and functions to NEURON
- Topic: NMODL Compile Error: Assertion failed!
- Replies: 10
- Views: 3764
Re: NMODL Compile Error: Assertion failed!
Thank you Michael. Using the recursive multiplication approach works for these expressions when using derivimplicit. I also tried using function and LOCAL. It gave me the same results both of them (though not desirable). I have to fix the parameter values. I will use functions for greater power valu...
- Mon Mar 11, 2019 3:11 pm
- Forum: Adding new mechanisms and functions to NEURON
- Topic: NMODL Compile Error: Assertion failed!
- Replies: 10
- Views: 3764
Re: NMODL Compile Error: Assertion failed!
Thanks. This shortcut for copying text works perfectly fine. I guess the key assigned for copy was changed to 'return' in newer NEURON versions.
I will also post here if I find a solution/workaround to the compilation error.
Best Wishes,
Darshan
I will also post here if I find a solution/workaround to the compilation error.
Best Wishes,
Darshan
- Mon Mar 11, 2019 1:26 pm
- Forum: Adding new mechanisms and functions to NEURON
- Topic: NMODL Compile Error: Assertion failed!
- Replies: 10
- Views: 3764
Re: NMODL Compile Error: Assertion failed!
Thank you Ted for your prompt reply! 1. I expanded the terms for adpi' and atpi' expressions: atpi' = ((nu - atpi* (1+(k2^2)*(adpi^2)+2*k2*adpi))/tauc) adpi' = ((atpi*(1+(k2^2)*(adpi^2)+2*k2*adpi) - eta*adpi)/tauc) and also changed the "k" which I declared as constant earlier to "k2&q...
- Sat Mar 09, 2019 1:38 am
- Forum: Adding new mechanisms and functions to NEURON
- Topic: NMODL Compile Error: Assertion failed!
- Replies: 10
- Views: 3764
NMODL Compile Error: Assertion failed!
Hi, I was trying to translate this code given here: https://www.math.fsu.edu/~bertram/software/islet/JTB_04.ode for pancreatic beta-cells, published by Wierschem and Bertram, J. Theor. Biol., 228:513-521, 2004. Here is the nmodl code I made: TITLE weirshem and Bertram 2004 UNITS { (molar) = (1/liter...
- Sat Nov 17, 2018 2:28 am
- Forum: Reaction-diffusion in NEURON
- Topic: Reaction-Diffusion in HOC
- Replies: 5
- Views: 18993
Re: Reaction-Diffusion in HOC
Hi, I get the following error when I run the working example given in the first post: C:\nrn\bin\nrniv.exe: cai not a section variable in D:/NEURON_Tools/rxd_hoc/rxd_hoc.hoc near line 32 g.addvar("ca", &soma.cai(0.5), 1, 1) NEURON -- VERSION 7.6.2 master (f5a1284) 2018-08-15 Duke, Yale...
- Thu Sep 27, 2018 10:52 am
- Forum: Anatomically detailed models
- Topic: Using Impedance Class for model with Ca accumulation
- Replies: 8
- Views: 4203
Re: Using Impedance Class for model with Ca accumulation
Thanks for your help, Ted!
Darshan
Darshan
- Tue Sep 25, 2018 5:23 am
- Forum: Anatomically detailed models
- Topic: Using Impedance Class for model with Ca accumulation
- Replies: 8
- Views: 4203
Re: Using Impedance Class for model with Ca accumulation
Ok. So, there is no change in cai in the model and it may not be the reason for the message. I will try find the source of error. Meanwhile, I will use a workaround for calculating transfer impedance similar to as discussed in the above posts: injecting current (1 nA) and recording the resulting (pe...
- Mon Sep 24, 2018 2:14 pm
- Forum: Anatomically detailed models
- Topic: Using Impedance Class for model with Ca accumulation
- Replies: 8
- Views: 4203
Re: Using Impedance Class for model with Ca accumulation
Sorry for not being clear on the source of mod files. I obtained the cachan.mod and capmp.mod from C:\nrn\examples\nrniv\nmodl of my NEURON 7.6.2 setup. Also uploaded here: https://drive.google.com/drive/folders/1ZGvLL3qKvjmCe7klT9rwk6L93qY-xQuh?usp=sharing The SUFFIX in capmp.mod is capr. I don't h...