Skip to content

Commit

Permalink
fix tutorial notebooks after module (re)loading changes in NEST 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
C.A.P. Linssen committed Apr 19, 2024
1 parent 11ede98 commit da17809
Show file tree
Hide file tree
Showing 8 changed files with 6,519 additions and 10,311 deletions.
226 changes: 76 additions & 150 deletions doc/tutorials/active_dendrite/nestml_active_dendrite_tutorial.ipynb

Large diffs are not rendered by default.

136 changes: 63 additions & 73 deletions doc/tutorials/izhikevich/nestml_izhikevich_tutorial.ipynb

Large diffs are not rendered by default.

1,166 changes: 131 additions & 1,035 deletions doc/tutorials/ornstein_uhlenbeck_noise/nestml_ou_noise_tutorial.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5,519 changes: 2,576 additions & 2,943 deletions doc/tutorials/stdp_dopa_synapse/stdp_dopa_synapse.ipynb

Large diffs are not rendered by default.

5,731 changes: 1,531 additions & 4,200 deletions doc/tutorials/stdp_windows/stdp_windows.ipynb

Large diffs are not rendered by default.

2,285 changes: 1,052 additions & 1,233 deletions doc/tutorials/triplet_stdp_synapse/triplet_stdp_synapse.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pynestml/codegeneration/nest_code_generator_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def generate_code_for(cls,
nestml_neuron_model = nestml_model_file.read()

# update neuron model name inside the file
neuron_model_name = re.findall(r"model [^:\s]*:", nestml_neuron_model)[0][7:-1]
neuron_model_name = re.findall(r"model [^:\s]*:", nestml_neuron_model)[0][6:-1]
neuron_fn = neuron_model_name + ".nestml"
with open(neuron_fn, "w") as f:
print(nestml_neuron_model, file=f)
Expand All @@ -108,7 +108,7 @@ def generate_code_for(cls,
nestml_synapse_model = nestml_model_file.read()

# update synapse model name inside the file
synapse_model_name = re.findall(r"model [^:\s]*:", nestml_synapse_model)[0][8:-1]
synapse_model_name = re.findall(r"model [^:\s]*:", nestml_synapse_model)[0][6:-1]
synapse_fn = synapse_model_name + ".nestml"
with open(synapse_fn, "w") as f:
print(nestml_synapse_model, file=f)
Expand Down

0 comments on commit da17809

Please sign in to comment.