How to access NRN object from Python API #3703
Unanswered
stefanches7
asked this question in
Q&A
Replies: 1 comment
-
|
Those are written in HOC (see Here's a full example session for modeldb.science/7400 >>> from neuron import h
>>> h.load_file("mosinit.hoc")
1
1
1
Init complete.
1
1
1
1
Loading decvec
1
1
1
0
1
1
0
1
1
1
1
1
1
1
Vector pairs
10000000000000000000001000000000001000000000011000000000000100000000000000000000
00000000000100000100000000010000000000000000000000010000000000000000000000100001
01000000000000000000000001000000000000000100000000000000000010000000000000101000
00000000000000000000000000000000110010000000000000000000000010000000000101000000
00000000000001000000000000001000000000100000000000000000100000100001000000000000
10000000000010101000000010000000000001000000000000000000000000000000000000000000
00000000000000011000000000010000000000000000000000001000000000000000100000000010
00000000000001000000000000000010000000000000101000000000001000010000000000000000
00000000000000000001000000000001000010001000000100000000000000000100000000000000
00000000000000000010010000000000000000000011000100000100000000000000000000000000
00100001001000000000000000000000000000010000000000000000001000000000001000000000
00000001000000000000000000000001000100010000000000000000000001000000100000000000
00000000000000000000000000000000000001000011000000000000000000000000010001010000
00000100000000010000000000100100000000000100000000000000000000100000000000000000
00001000100000000000100010000000000000000000000000000100000000001000000000000000
00010000000000000000000000000000001000000000000000100000000100000000001010000000
00000100000000000100000000000000010100000000000000000001000000010000000000000000
01000000100000000000000000000000000000000000000001000000000000000001010000000010
00000010000000100000010000000100000000000000000000010000000000000000000010000000
00000000001000000000001000000000000000000000010000000001000000001000000000010000
00000000010000000000000100000000000000000000000011000000010000000000000100000000
00100010000000000000000101000000000000100000000000000000000000000000000000000100
<<==>> <<==>> <<==>> <<==>> <<==>> <<==>> <<==>> <<==>> <<==>> <<==>> <<==>> 0
0
0
0
0
0
1
1
cvode_state: active 0, local 0
0
Vector[40]
Vector[40]
cvode_state: active 0, local 0
1
330.25 42
580.25 150
830.25 20
1080.25 19
1330.25 15
1580.25 129
1830.25 92
2080.25 88
2330.25 59
2580.25 113
2830.25 149
3080.25 6
3330.25 72
3580.25 46
3830.25 114
4080.25 93
4330.25 142
4580.25 141
4830.25 9
0:21 1:13 2:13 3:1 4:29 5:29 6:14 7:13 8:29 9:14 10:13 11:1 12:1 13:13 14:13 15:22 16:21 17:29 18:1 19:14 20:30 21:13 22:21 23:13 24:29 25:13 26:1 27:21 28:13 29:13 30:1 31:13 32:1 33:29 34:21 35:29 36:13 37:21 38:13 39:13 40:13 41:13 42:22 43:21 44:1 45:21 46:22 47:13 48:13 49:13 50:1 51:13 52:21 53:29 54:1 55:29 56:13 57:13 58:13 59:22 60:13 61:1 62:13 63:29 64:29 65:13 66:1 67:13 68:21 69:21 70:13 71:13 72:14 73:21 74:13 75:21 76:13 77:1 78:21 79:1 80:13 81:29 82:13 83:29 84:1 85:21 86:13 87:13 88:30 89:1 90:13 91:21 92:14 93:22 94:13 95:21 96:13 97:21 98:13 99:1 100:1 101:13 102:13 103:13 104:13 105:13 106:21 107:21 108:1 109:21 110:21 111:13 112:13 113:14 114:30 115:13 116:13 117:13 118:13 119:13 120:1 121:21 122:13 123:13 124:21 125:13 126:21 127:13 128:1 129:30 130:29 131:21 132:1 133:13 134:1 135:13 136:1 137:1 138:21 139:29 140:13 141:14 142:22 143:21 144:13 145:1 146:1 147:29 148:13 149:30 150:30 151:13 152:29 153:13 154:21 155:13 156:1 157:13 158:29 159:21
Vector[39]
1
1.0
>>> h.NRN[154]
NRN[154]
>>> h.NRN[154].soma.L
31.831 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Overview of the feature
I would like to access NRN object just like in vanilla Neuron simulation, but in Python.
I am running ModelDB 7400 (Lytton99)
Current topology of the simulation:
cells are just not accessible. I have defined an interface class, but it still won't help. https://nrn.readthedocs.io/en/9.0.0/tutorials/scripting-neuron-basics.html#Step-7:-Run-the-simulation was not useful here, and I did not find any other doc.
Is it possible now, or should it be implemented? Best regards,
Beta Was this translation helpful? Give feedback.
All reactions