Skip to content
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

Changing Rm gives odd results #457

Open
analkumar2 opened this issue Sep 30, 2022 · 0 comments
Open

Changing Rm gives odd results #457

analkumar2 opened this issue Sep 30, 2022 · 0 comments

Comments

@analkumar2
Copy link
Contributor

The following script gives an output that settles at ~0mV

import moose
import rdesigneur as rd

rdes = rd.rdesigneur(
    plotList = [['soma', '1', '.', 'Vm', 'Soma membrane potential'],
        ['soma', '1', '.', 'inject', 'Stimulus current']],
)

rdes.buildModel()
moose.element('model/elec/soma').Rm = 150e6
moose.reinit()
moose.start( 1 )
rdes.display()

image

It should instead settle to its Em which is -54mV as seen in the moose.showfield('/model/elec/soma') output:

[/model[0]/elec[0]/soma]
Cm              =7.853981633975e-09
Em              =-0.0544
Im              =-3.616405299179119e-10
Ra              =7639437.268410473
Rm              =150000000.0
Vm              =-0.00015392051231321474
className       =ZombieCompartment
diameter        =0.0005
dt              =0.0
fieldIndex      =0
idValue         =449
index           =0
initVm          =-0.065
inject          =0.0
length          =0.0005
name            =soma
numData         =1
numField        =1
path            =/model[0]/elec[0]/soma[0]
tick            =-2
x               =0.0005
x0              =0.0
y               =0.0
y0              =0.0
z               =0.0
z0              =0.0

For some reason Im is not 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant