Skip to content

Commit

Permalink
compile mechanisms before importing neuron
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiliç Ilkan Fabrice committed Dec 19, 2023
1 parent 18e389b commit 88c7f0b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 11 additions & 13 deletions examples/deap/GranuleCell1/GranuleCellDeap1.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!nrnivmodl ./mechanisms"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -59,15 +68,6 @@
"from IPython import display"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!nrnivmodl ./mechanisms"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -113,9 +113,7 @@
" \n",
" return feature_values, times, voltages\n",
"\n",
"orig_features, orig_times, orig_voltages = get_features(orig_conductances)\n",
"\n",
"# it doesn't work with classes, at least at thi point"
"orig_features, orig_times, orig_voltages = get_features(orig_conductances)"
]
},
{
Expand Down Expand Up @@ -274,7 +272,7 @@
"\n",
" # Total number of generation to run\n",
" #NGEN = 100\n",
" NGEN = 25\n",
" NGEN = 3\n",
"\n",
" # Total population size of EA\n",
" ALPHA = POP_SIZE\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/deap/deap_efel_neuron2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"\n",
"# Total number of generation to run\n",
"#NGEN = 300\n",
"NGEN = 100\n",
"NGEN = 3\n",
"\n",
"# Total population size of EA\n",
"ALPHA = POP_SIZE\n",
Expand Down

0 comments on commit 88c7f0b

Please sign in to comment.