BhallaLab / moose

MOOSE simulator.
http://moose.ncbs.res.in
GNU General Public License v3.0
26 stars 19 forks source link

Setting CaConc Ca_base in redesigneur ChanDistrib #261

Closed analkumar2 closed 5 years ago

analkumar2 commented 5 years ago

Not able to change CaBasal or Ca_base value using rdesigneur's ChanDistrib field. Attached are three files:

In the code, when we use ChanDistribto change the value of Ca_base to 0.1e-3mM and tau to 50e-3s, chanDistrib = [['Ca_N_chan', 'soma', 'Gbar', '1'], ['Ca_conc', 'soma', 'Ca_base', str(0.1e-3), 'tau', '50e-3']]

The tau gets changed to 50e-3s, but Ca_base or CaBasal remains to their default values. The only way to change Ca_base is to modify the calcium decay mechanism file.

CheckCaconcbasal.txt CaConc(Common).txt Ca_NChan(Migliore2018).txt

analkumar2 commented 5 years ago

Resolved Before running a new model, the Ca_Conc in the library has to be deleted using moose.delete('/library/Ca_conc') in addition to deleting the previous model using moose.delete('/model'). If just the model is deleted, the CaBasal cannot be modified using ChanDistrib.

dilawar commented 5 years ago

Its bit odd. The library should be readonly. Desired elements from library should be copied into model using moose.copy. When you prepare document, you can add a note/warning.

analkumar2 commented 5 years ago

I am using Rdesigneur to set up the library and the model. Rdesigneur takes care of copying the elements from the library to model.