Skip to content

RuntimeError when attempting to run an already setup cell #1204

Answered by lungsi
lungsi asked this question in Q&A
Discussion options

You must be logged in to vote

Ok I think I got it to work with

# Set mechanisms
leaky_chnl = arbor.mechanism("pas", {'e': -54.3, 'g': 0.0003})
hh_na_k_chnl = arbor.mechanism("hh", {"gnabar": 0.120,
                                      "gkbar": 0.036,
                                      "gl": 0.}) # to avoid duplication

# Attach mechanism
cell.paint('(join (region "soma") (region "dend") (region "axon"))', "na", rev_pot=50)
cell.paint('(join (region "soma") (region "dend") (region "axon"))', "k", rev_pot=-77)
cell.paint('(join (region "soma") (region "dend") (region "axon"))', hh_na_k_chnl)
cell.paint('"everywhere"', leaky_chnl)

and then cell_model.run(100) is successful (i.e, no RuntimeError) but

I don't know if …

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@lungsi
Comment options

@noraabiakar
Comment options

Comment options

You must be logged in to vote
2 replies
@noraabiakar
Comment options

@lungsi
Comment options

Comment options

You must be logged in to vote
1 reply
@noraabiakar
Comment options

Answer selected by lungsi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants