You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: examples/neuroml/neuroml.ipynb
+37-5Lines changed: 37 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -29,13 +29,15 @@
29
29
]
30
30
},
31
31
{
32
+
"attachments": {},
32
33
"cell_type": "markdown",
33
34
"id": "63d69fd0-dd92-424b-b38a-be50f03e3dd7",
34
35
"metadata": {},
35
36
"source": [
36
37
"Note that the bluepyopt neuroml module cannot yet handle:\n",
37
38
"- non uniform parameter\n",
38
-
"- axon replacement"
39
+
"- axon replacement\n",
40
+
"- stochasticity"
39
41
]
40
42
},
41
43
{
@@ -57,7 +59,6 @@
57
59
"import sys\n",
58
60
"\n",
59
61
"from pyneuroml import pynml\n",
60
-
"from bluepyopt.ephys import models\n",
61
62
"from bluepyopt.neuroml import cell\n",
62
63
"from bluepyopt.neuroml import simulation"
63
64
]
@@ -174,7 +175,7 @@
174
175
"- a neuroml cell file named after the bluepyopt cell's name: Here, `l5pc_0_0.cell.nml`.\n",
175
176
"- a neuroml network file containing the neuroml cell, named after the bluepyopt cell's name. Here, `l5pc.net.nml`.\n",
176
177
"\n",
177
-
"Note that the `create_neuroml_cell` function is designed to work with the mechanisms present in `bluepyopt/neuroml/NeuroML2_mechanisms/` and will likely crash if you try to use it with custom mechanisms."
178
+
"Skip this step if you want to use custom mechanisms not present in `bluepyopt/neuroml/NeuroML2_mechanisms/`."
"If you want to create a neuroml cell with custom mechanisms that are not present in `bluepyopt/neuroml/NeuroML2_mechanisms/`, you will have to:\n",
200
+
"- copy your custom mechanisms in the `.nml` format in the `./channels` directory\n",
201
+
"- give as argument `custom_channel_ion`, a dict mapping channel name to ion name, e.g. `custom_channel_ion = {\"NaCustom\": \"na\"}`\n",
202
+
"- if one of the ion in `custom_channel_ion` is not in pre-registered ions (na, k, hcn, ca, pas), you'll also have to give as argument `custom_ion_erevs`, a dict mapping ions to their reversal potential\n",
203
+
"\n",
204
+
"Below is an example of how to use the `create_neuroml_cell` function with custom mechanisms.\n",
205
+
"\n",
206
+
"However, be aware that `create_neuroml_cell` might not be able to deal with any given custom mechanism, and some might break it."
0 commit comments