Search found 5 matches
- Thu Apr 11, 2013 9:54 am
- Forum: NEURON hacks
- Topic: How to iterate over all states of all mechanisms in a sec?
- Replies: 2
- Views: 29387
- Wed Apr 10, 2013 6:05 pm
- Forum: NEURON hacks
- Topic: How to iterate over all states of all mechanisms in a sec?
- Replies: 2
- Views: 29387
How to iterate over all states of all mechanisms in a sec?
Does any one know how to iterate over all states of all mechanisms in a section? I want to do this because I'm trying to record all states with vectors. I can record the state if the mechanism's and state's names are known. However, since the sets of mechanisms differ from cell to cell and from sect...
- Sun Nov 18, 2012 11:22 pm
- Forum: Suggestions and Feedback
- Topic: Subtle bug about vector copy in python
- Replies: 4
- Views: 38075
Re: Subtle bug about vector copy in python
Thanks for your detailed explanation!
- Sat Nov 17, 2012 5:31 pm
- Forum: Suggestions and Feedback
- Topic: Subtle bug about vector copy in python
- Replies: 4
- Views: 38075
Subtle bug about vector copy in python
from neuron import h v1 = h.Vector(1) v1.x[0]=10 v2 = v1.c v2.x[0]=5 print v1.x[0] == v2.x[0] # true print v1.x == v2.x # false print v1==v2 # false In python, v1 and v2 are said to be different, but in fact they point to the same vector in hoc. This problem won't occur if we use v2 = v1.c()
- Mon Nov 12, 2012 11:52 am
- Forum: Suggestions and Feedback
- Topic: Possible bug in loadbal.hoc
- Replies: 1
- Views: 33215
Possible bug in loadbal.hoc
Recently when I tried to use loadbal.hoc, I found that sometimes there will be a "subscript index out of range" error. After testing the loadbal.hoc, I found that near line 450 if (j == 0 && ionindices.x[k] > 0){ should be changed to if (j == 0) if (ionindices.x[k] > 0){ to prevent...