-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add show
functionality for synapses
#403
Comments
|
I think this is doomed because I can't get the function handles when I construct a synapse as a standalone cpplab object. |
>> C = cpplab('prinz/Cholinergic')
C =
Cholinergic object (dcc022a) with:
gmax : 0
s : 0
>> {C.cpp_child_functions.fun_name}
ans =
1×10 cell array
{0×0 double} {'getFullStateSize'} {'s_inf'} {'tau_s'} {'sdot'} {'integrate'} {'integrateMS'} {'checkSolvers'} {'getFullState'} {'connect'}
>> C.cpp_child_functions(3)
ans =
struct with fields:
fun_name: 's_inf'
fun_handle: []
fun_return_type: 'double'
fun_input_type: {'double'}
fun_input_names: {'V_pre'}
>> C = cpplab('liu/NaV')
C =
NaV object (54891d4) with:
m : 0
h : 1
gbar : NaN
E : 30
>> C.cpp_child_functions(3)
ans =
struct with fields:
fun_name: 'm_inf'
fun_handle: @(V,Ca)1.0/(1.0+exp((V+25.5)/-5.29))
fun_return_type: 'double'
fun_input_type: {'double' 'double'}
fun_input_names: {'V' 'Ca'}
>> |
Currently, yes. That's not something that has to happen though.
Then it doesn't get plotted. Currently
Then it doesn't find it, and nothing is plotted. If I named my function |
fair enough. not getting the function handles from synapses is a bug in cpplab. See also: this bug in cpplab |
OK, the function handles are now populated. But it's pretty useless because the parameters are not set. (e.g. Vth) |
this is very complicated to implement. |
Stale issue message |
wontfix |
New feature proposal
Add functionality to
show
so that it works for synapses as well as conductances.Implementation
Most synapse models have a
s_inf
function, which should be plotted the same way thatm_inf
is plotted. Time constants can vary -- some models don't havetau_s
functions, but use a sum of exponentials with constant decay rates. Usually, these are calledtau_r
andtau_d
.At the very least, plotting the
s_inf
function over where them_inf
function should be doable, and then plotting thetau_s
function (if any) over thetau_m
plots.Alternatively, there could be (yet another) method of xolotl that explicitly handles the synapse case.
The text was updated successfully, but these errors were encountered: