Skip to content

Commit

Permalink
Merge pull request #251 from neurolib-dev/docs-fixes
Browse files Browse the repository at this point in the history
Minor Docs Fixes
  • Loading branch information
lenasal committed Oct 27, 2023
2 parents 96708f6 + 386f8c7 commit 6886ced
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install dependencies 🛠
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material mkdocstrings mkdocstrings-python mknotebooks Pygments mkdocs-include-markdown-plugin livereload
pip install mkdocs mkdocs-material mkdocstrings mkdocstrings-python mknotebooks Pygments livereload
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install .
- name: Build documentation 👷‍♀️
Expand Down
28 changes: 14 additions & 14 deletions examples/example-0-aln-minimal.ipynb

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions examples/example-0.1-hopf-minimal.ipynb

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions examples/example-0.2-basic_analysis.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/example-0.3-fhn-minimal.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"# The Fitz-Hugh Nagumo oscillator\n",
"\n",
"In this notebook, the basic use of the implementation of the Fitz-Hugh Nagumo (`fhn`) model is presented. Usually, the `fhn` model is used to represent a single neuron (for example in `Cakan et al. (2014)`, \"Heterogeneous delays in neural networks\"). This is due to the difference in timescales of the two equations that define the FHN model: The first equation is often referred to as the \"fast variable\" whereas the second one is the \"slow variable\". This makes it possible to create a model with a very fast spiking mechanism but with a slow refractory period. \n",
"In this notebook, the basic use of the implementation of the FitzHugh-Nagumo (`fhn`) model is presented. Usually, the `fhn` model is used to represent a single neuron (for example in `Cakan et al. (2014)`, \"Heterogeneous delays in neural networks\"). This is due to the difference in timescales of the two equations that define the FHN model: The first equation is often referred to as the \"fast variable\" whereas the second one is the \"slow variable\". This makes it possible to create a model with a very fast spiking mechanism but with a slow refractory period. \n",
"\n",
"In our case, we are using a parameterization of the `fhn` model that is not quite as usual. Inspired by the paper by `Kostova et al. (2004)` \"FitzHugh–Nagumo revisited: Types of bifurcations, periodical forcing and stability regions by a Lyapunov functional.\", the implementation in `neurolib` produces a slowly oscillating dynamics and has the advantage to incorporate an external input term that causes a Hopf bifurcation. This means, that the model roughly approximates the behaviour of the `aln` model: For low input values, there is a low-activity fixed point, for intermediate inputs, there is an oscillatory region, and for high input values, the system is in a high-activity fixed point. Thus, it offers a simple way of exploring the dynamics of a neural mass model with these properties, such as the `aln` model.\n",
"\n",
Expand Down
15 changes: 7 additions & 8 deletions examples/example-0.5-kuramoto.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"source": [
"# Single node simulation \n",
"\n",
"Here we will simulate a signal node with no noise. We then cap the phase values to be between 0 and 2*pi. We also willo plot the phase values over time."
"Here we will simulate a signal node with no noise. We then cap the phase values to be between 0 and 2*pi. We also will plot the phase values over time."
]
},
{
Expand Down Expand Up @@ -117,7 +117,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Here we simulate networks of oscillators. We will simulate a network of 8 oscillators with a global coupling strength 0.3. Here we initialize a connectivity matrix with all-to-all connectivity. We then simulate the network for 30 miliseconds assuming dt is in ms. We will also plot the phase values over time."
"Here we simulate networks of oscillators. We will simulate a network of 8 oscillators with a global coupling strength 0.3. Here we initialize a connectivity matrix with all-to-all connectivity. We then simulate the network for 30 milliseconds assuming dt is in ms. We will also plot the phase values over time."
]
},
{
Expand Down Expand Up @@ -222,13 +222,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Now the syncrhonization happens after 7 ms which is faster compared to the previous simulation."
"Now the synchronization happens after 7 ms which is faster compared to the previous simulation."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "kuramoto",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -242,10 +242,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
},
"orig_nbformat": 4
"version": "3.8.13"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
52 changes: 26 additions & 26 deletions examples/example-0.6-external-stimulus.ipynb

Large diffs are not rendered by default.

0 comments on commit 6886ced

Please sign in to comment.