BhallaLab / moose-core

C++ basecode and python scripting interface
https://moose.ncbs.res.in
GNU General Public License v3.0
15 stars 26 forks source link

Issue with setting passiveDistrib in rdesigneur #468

Open analkumar2 opened 7 months ago

analkumar2 commented 7 months ago

Setting Em in redsigneur does not work eg the following code which should set the Em of soma to -0.065 V does not change it:


import moose
import rdesigneur as rd
rdes = rd.rdesigneur(
    passiveDistrib = [['soma', 'Em', '-0.065']],
)
rdes.buildModel()
moose.reinit()
moose.start( 1 )

print('soma Em = ', f"{moose.element('model/elec/soma').Em}")

It prints: soma Em = -0.0544

If on the other hand I also declare another passive property like Cm before Em, it works:

import moose
import rdesigneur as rd
rdes = rd.rdesigneur(
    passiveDistrib = [['soma', 'Cm', '150e-12', 'Em', '-0.065']],
)
rdes.buildModel()
moose.reinit()
moose.start( 1 )

print('soma Em = ', f"{moose.element('model/elec/soma').Em}")

The above code prints soma Em = -0.065