USEION in mod files for RxD species I created
Posted: Fri Mar 01, 2019 9:48 am
Hi, I am trying to keep track of the maximum value of several concentrations using mod files (so that I don't have to record in a bunch of locations). This worked really well for calcium, but the same syntax doesn't work for species that I created with RxD. Here is what worked for calcium:
and then "sec.insert('camax')" in my python code for all sections. However, when I try this for species "CG" (and associated "CGi", "cgmax"), where:
it doesn't work. Any idea why or what to change? My guess is it has something to do with calcium already being recognized by Neuron, and my new species not, but I'm not sure how to change that. Thanks!
Code: Select all
NEURON {
SUFFIX camax
USEION ca READ cai WRITE cai
RANGE cam
}
ASSIGNED {
ca (mM)
cam (mM)
}
PARAMETER {
cai (mM)
}
INITIAL {
cam = cai
}
BREAKPOINT {
if (cai>cam) { cam=cai }
}
Code: Select all
cg = rxd.Species(r, initial=cg0, name='CG', d=dg, charge=0)