Lessons & materials
Lessons
Workshop materials
Follow the facilitator schedule, try the Git lab on your computer, or use the personal handoff plan with a labmate. To run the downloaded notebooks in Jupyter, follow the local setup instructions.
Download the materials
Extract the complete project and follow its README or setup. Archives are generated from source during the website build and exclude environments, caches, Git metadata, and generated analysis outputs. The notebooks contain small executed synthetic outputs for inspection. The website source archive includes the complete example project too.
Compare the three stages
| Stage | Open in Jupyter | Purpose |
|---|---|---|
| A · exploration | notebooks/01_exploration.ipynb |
A working but repetitive analysis with embedded paths and repeated rules |
| B · extracted functions | notebooks/02_refactored.ipynb + helpers.py |
Same results, one reusable filtering and summary module |
| C · complete project | notebooks/03_project.ipynb + src/experiment/ |
Shared configuration, validated inputs, installed package, scripts, run records, and tests |
All use the same seeded CSV and inclusive RT bounds. The tests execute each notebook from a fresh kernel and compare the condition tables with numerical tolerances. See the refactoring lesson for the guided comparison.
The experiment in one paragraph
Twenty-four fictitious participants each complete 80 trials in each of two conditions. Each trial has a signed motion direction and unsigned stimulus strength. A logistic choice rule produces right/left responses, with reduced sensitivity in the noisy condition. A local seeded generator also produces RTs and sparse simulated timing artifacts. The data dictionary in data/README.md defines every column. The analysis is descriptive and uses no real participant data.
Small command reference
| Task | Command | Run from |
|---|---|---|
| Install the teaching project | python -m pip install -e ".[dev]" |
Extracted project root, activated environment |
| Regenerate synthetic trials | python scripts/generate_data.py |
Project root |
| Reproduce the baseline | python scripts/run_analysis.py --config config/analysis.toml |
Project root |
| Compare a stricter RT rule | python scripts/run_analysis.py --config config/sensitivity.toml |
Project root |
| Run project checks | python -m pytest |
Project root |
| Launch notebooks | python -m jupyterlab |
Project root |
| Inspect changes | git status and git diff |
Git working tree |
| Inspect the proposed commit | git diff --staged |
Git working tree |
| Create a branch | git switch -c descriptive-name |
Git working tree |
| Upload a branch | git push -u origin descriptive-name |
A repository with your remote configured |
Use and adaptation
The workshop source is supplied under the MIT license. Synthetic data are released under CC0 as stated in DATA-LICENSE.md. Adjust examples to your lab’s methods and data policies. No upload, repository creation on GitHub, or publishing is required to use the local materials. The root README explains how to build and deploy the website when its owner chooses to do so.