Skip to content

Commit

Permalink
Fix typos in tutorials (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldeistler authored Oct 18, 2024
1 parent 3cdb490 commit d73202b
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 54 deletions.
50 changes: 25 additions & 25 deletions docs/tutorials/03_setting_parameters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"cells": [
{
"cell_type": "markdown",
"id": "806f72b5-61c5-4415-ae97-87a6b07a73e3",
"id": "cfacf4c0",
"metadata": {},
"source": [
"# Setting parameters and initial states"
]
},
{
"cell_type": "markdown",
"id": "14b6336e-5b07-464e-885c-0e63bb746857",
"id": "e646adc7",
"metadata": {},
"source": [
"In this tutorial, you will learn how to:\n",
Expand All @@ -36,7 +36,7 @@
},
{
"cell_type": "markdown",
"id": "20a19399-cff4-45e3-b0b5-d2d1d5d877ec",
"id": "4ba601ce",
"metadata": {},
"source": [
"In the previous two tutorials, you learned how to build single cells or networks and how to simulate them. In this tutorial, you will learn how to change parameters of such simulations.\n",
Expand All @@ -47,7 +47,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "deb594f4",
"id": "701218e5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -62,7 +62,7 @@
},
{
"cell_type": "markdown",
"id": "f5cda6ff",
"id": "323525f1",
"metadata": {},
"source": [
"### Preface: Building the cell or network\n",
Expand All @@ -73,7 +73,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "9819bbf4",
"id": "8b1f5440",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -87,7 +87,7 @@
},
{
"cell_type": "markdown",
"id": "634ac32b-4b55-4dda-a715-2f6d050039fc",
"id": "73e22784",
"metadata": {},
"source": [
"### Setting parameters in `Jaxley`\n",
Expand All @@ -110,7 +110,7 @@
},
{
"cell_type": "markdown",
"id": "39b96beb-4c0c-40ae-8418-c8d6eb76bcee",
"id": "22c4984e",
"metadata": {},
"source": [
"### Setting morphological parameters\n",
Expand All @@ -125,7 +125,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "5424211f-369d-4d82-82da-e7abc6d34c8d",
"id": "c4f7365f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -136,7 +136,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "f9f052e9-22be-403f-9c44-73ba36d5802f",
"id": "1bd28efb",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -244,7 +244,7 @@
},
{
"cell_type": "markdown",
"id": "4504d01e-8fe0-46b7-907f-e225b77280d6",
"id": "1ac45b6e",
"metadata": {},
"source": [
"### Setting channel parameters\n",
Expand All @@ -255,18 +255,18 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "2614c220-fe75-47cf-96dd-6961da9ac746",
"id": "385093fb",
"metadata": {},
"outputs": [],
"source": [
"cell.insert(Na())\n",
"cell.branch(1).comp(0).set(\"Na_gNa\", 0.1) # mS/cm^2"
"cell.branch(1).comp(0).set(\"Na_gNa\", 0.1) # S/cm^2"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "f5940f1d-202d-4a1b-b39c-10cf3c4143e5",
"id": "ae8c4aa4",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -404,7 +404,7 @@
},
{
"cell_type": "markdown",
"id": "b0ee6691-4d0f-4650-9f69-9221b13f0128",
"id": "59595647",
"metadata": {},
"source": [
"### Setting synaptic parameters\n",
Expand All @@ -415,7 +415,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "08375bd2-fde1-47b6-814c-77e1b1065990",
"id": "3364da0e",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -432,7 +432,7 @@
},
{
"cell_type": "markdown",
"id": "712a57ec-e662-40f3-bb43-30422a0546a0",
"id": "1a7a4067",
"metadata": {},
"source": [
"You can inspect synaptic parameters and states with `net.edges`:"
Expand All @@ -441,7 +441,7 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "7571ce65-ced9-43e4-a9d2-7fe0cfacb972",
"id": "c7722339",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -535,15 +535,15 @@
},
{
"cell_type": "markdown",
"id": "00c7080d-3b71-43b0-84d5-eff87ad3db79",
"id": "c051c725",
"metadata": {},
"source": [
"### Setting initial states"
]
},
{
"cell_type": "markdown",
"id": "c7c970f1-0359-4106-802f-e06e941bfe0f",
"id": "7ff2543a",
"metadata": {},
"source": [
"Finally, you can also set initial states. These include the initial voltage `v` and the states of all channels and synapses (which must be defined in `self.channel_states` of the channel. For example:"
Expand All @@ -552,7 +552,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "86544366-6790-4b0e-8799-251769a63b9e",
"id": "e9023c42",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -563,7 +563,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "f8509703-7aff-4836-979e-7e5d7f8bdaf5",
"id": "e0bf8439",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -778,7 +778,7 @@
{
"cell_type": "code",
"execution_count": 11,
"id": "94564463-a5bb-443f-94e4-9bd46ebc9121",
"id": "dc382312",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -872,15 +872,15 @@
},
{
"cell_type": "markdown",
"id": "95003e15-a8e4-47bc-89a5-677709df86ca",
"id": "7b716211",
"metadata": {},
"source": [
"### Summary"
]
},
{
"cell_type": "markdown",
"id": "7bec5ecb-ba6a-49da-b75b-336821fd849b",
"id": "6273613c",
"metadata": {},
"source": [
"You can now modify parameters of your `Jaxley` simulation. In [the next tutorial](https://jaxleyverse.github.io/jaxley/latest/tutorial/04_jit_and_vmap/), you will learn how to make parameter sweeps (or stimulus sweeps) fast with jit-compilation and GPU parallelization."
Expand Down
Loading

0 comments on commit d73202b

Please sign in to comment.