Skip to content

Commit

Permalink
docs(tutorials): Rectify main sequence plot in 10-minutes tutorial (#416
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dkrako authored May 17, 2023
1 parent a02c9e6 commit 44bd0c0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/source/tutorials/pymovements-in-10-minutes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@
"outputs": [],
"source": [
"subset = {\n",
" 'text_id': [1, 2],\n",
" 'page_id': 1,\n",
" 'text_id': [0],\n",
" 'page_id': [0, 1, 2],\n",
"}\n",
"dataset.load(subset=subset)\n",
"\n",
Expand Down Expand Up @@ -328,7 +328,7 @@
"metadata": {},
"outputs": [],
"source": [
"dataset.detect_events('microsaccades', minimum_duration=12)\n",
"dataset.detect_events('microsaccades', minimum_duration=8)\n",
"\n",
"dataset.events[0].frame.filter(pl.col('name') == 'saccade').head()"
]
Expand All @@ -351,7 +351,7 @@
"We now want to compute some additional properties for each event.\n",
"Event properties are things like peak velocity, amplitude and dispersion during an event.\n",
"\n",
"We start out with computing the peak velocity:"
"We start out with computing the dispersion:"
]
},
{
Expand All @@ -361,7 +361,7 @@
"metadata": {},
"outputs": [],
"source": [
"dataset.compute_event_properties(\"peak_velocity\")\n",
"dataset.compute_event_properties(\"dispersion\")\n",
"\n",
"dataset.events[0].frame.head()"
]
Expand All @@ -371,9 +371,9 @@
"id": "199e4b8a",
"metadata": {},
"source": [
"We notice that a new column with the name `peak_velocity` has appeared in the event dataframe.\n",
"We notice that a new column with the name `dispersion` has appeared in the event dataframe.\n",
"\n",
"We can also pass a list of properties. Let's add the amplitude and dispersion:"
"We can also pass a list of properties. Let's add the amplitude and peak velocity:"
]
},
{
Expand All @@ -383,7 +383,7 @@
"metadata": {},
"outputs": [],
"source": [
"dataset.compute_event_properties([\"amplitude\", \"dispersion\"])\n",
"dataset.compute_event_properties([\"amplitude\", \"peak_velocity\"])\n",
"\n",
"dataset.events[0].frame.head()"
]
Expand Down

0 comments on commit 44bd0c0

Please sign in to comment.