## 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: 7011

### Re: How to iterate over all states of all mechanisms in a se

Thanks!
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: 7011

### 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: 12861

### Re: Subtle bug about vector copy in python

Sat Nov 17, 2012 5:31 pm
Forum: Suggestions and Feedback
Topic: Subtle bug about vector copy in python
Replies: 4
Views: 12861

### 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