benpolletta / Lee2015

Code for laminar cortical model from Lee, Whittington, & Kopell 2015 (depends on DynaSim).
2 stars 0 forks source link

Another issue with leak current #2

Open davestanley opened 5 years ago

davestanley commented 5 years ago

@benpolletta Seems to be more specification errors

Error using cell/ismember (line 34)
Input A of class char and input B of class cell must be cell arrays of character vectors, unless one is a character vector.
Error in dsGenerateModel (line 275)
      if ismember(MechID,{specification.populations(i).mechanisms.name})
Error in dsCheckModel (line 102)
  model = dsGenerateModel(model);
Error in dsSimulate (line 540)
model = dsCheckModel(model, varargin{:}); % handles conversion when input is a string w/ equations or a DynaSim specification structure
Error in Lee2015functionMode (line 70)
    data = dsSimulate(sim_spec,'tspan',tspan,'downsample_factor',dsfact,'solver',solver,'coder',0,... 
34          error(message('MATLAB:ISMEMBER:InputClass',class(a),class(b)));

Missing mechanisms:

K>> i
i =
     5
K>> 
K>> 
K>> 
K>> MechID
MechID =
    'FSiNaF'
K>> specification.populations(i).mechanisms.name
ans =
    'FSiNaF'
ans =
    'FSiKDR'
ans =
     []
ans =
    'iExt'

Population in question. Looks like it's the leak current again

K>> specification.populations(i)
ans = 
  struct with fields:

              name: 'L4FS'
              size: 20
         equations: ';dV/dt=(Iapp+@current)./Cm;  V(0)=-65; gNaF=+100.00000000; gKDR=+80.00000000; Cm=+0.90000000; gleak=+0.10000000; gsyn=+0.10000000; Iapp=-4; gExt=+0.03000000;'
    mechanism_list: {'FSiNaF@current'  'FSiKDR@current'  'ileak@current'  'iExt@current'}
        mechanisms: [1×4 struct]
        parameters: {1×24 cell}
      conditionals: []
          monitors: []
             model: []