Skip to content

Commit c918a4a

Browse files
authored
Merge pull request #34 from yibeichan/nilearn-glm
7th tutorial - Nilearn multilevel (two-level) glm
2 parents c711a04 + d7f3d75 commit c918a4a

12 files changed

+966
-73
lines changed

.github/workflows/notebooks.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
python-version: [3.7, 3.8, 3.9, '3.10']
14+
python-version: [3.8, 3.9, '3.10']
1515
fail-fast: false
1616
runs-on: ${{ matrix.os }}
1717

@@ -28,6 +28,10 @@ jobs:
2828
- run: conda info
2929
- run: conda list
3030
- run: conda config --show
31+
- name: Set git credentials
32+
run: |
33+
git config --global user.name "fake user"
34+
git config --global user.email "fake@email"
3135
- name: Convert all md files to ipynb
3236
run: jupytext notebooks/*.md --to ipynb
3337
- name: Test notebooks with pytest

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ outputs/
33
.DS_Store
44
_build/
55
*.ipynb
6+
*/*.ipynb
67
.*.swp
8+
notebooks/*old*

environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
- git-annex
6+
- datalad
77
- pip
88
- pip:
9-
- datalad
109
- pydra
1110
- jupyter
1211
- jupyter_contrib_nbextensions
@@ -17,6 +16,7 @@ dependencies:
1716
- nbval
1817
- nest_asyncio
1918
- psutil
19+
- sh
2020
- pytest
2121
- numpy
2222
- pandas

jupyterbook/_config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
# Book settings
22
# Learn more at https://jupyterbook.org/customize/config.html
33

4-
title: Pydra Tutorial
4+
title: Tutorials
55
author: Pydra Developers
66
logo: logo.jpg
77

88
# Force re-execution of notebooks on each build.
99
# See https://jupyterbook.org/content/execute.html
10+
only_build_toc_files: true
11+
1012
execute:
1113
execute_notebooks: cache
1214
run_in_temp: true
1315
allow_errors: true
1416
timeout: -1
17+
only_build_toc_files: true
1518

1619
# Define the name of the latex output file for PDF builds
1720
latex:

jupyterbook/_toc.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@
44
format: jb-book
55
root: welcome
66
parts:
7-
- caption: Tutorials
7+
- caption: Basic Concepts
8+
numbered: True
89
chapters:
910
- file: notebooks/1_intro_pydra
1011
- file: notebooks/2_intro_functiontask
1112
- file: notebooks/3_intro_functiontask_state
1213
- file: notebooks/4_intro_workflow
1314
- file: notebooks/5_intro_shelltask
14-
- file: notebooks/6_glm_from_nilearn
15+
- caption: General Linear Model
16+
numbered: True
17+
chapters:
18+
- file: notebooks/6_firstlevel_glm_nilearn
19+
- file: notebooks/7_twolevel_glm_nilearn
1520
- caption: About Pydra
1621
chapters:
1722
- file: about/team

notebooks/1_intro_pydra.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ kernelspec:
1111
name: python3
1212
---
1313

14-
# 1. Pydra
14+
# Intro to Pydra
1515

1616
+++
1717

notebooks/2_intro_functiontask.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ kernelspec:
1111
name: python3
1212
---
1313

14-
# 2. FunctionTask
14+
# FunctionTask
1515

1616
```{code-cell}
1717
---

notebooks/3_intro_functiontask_state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ kernelspec:
1111
name: python3
1212
---
1313

14-
# 3. Tasks with States
14+
# Tasks with States
1515

1616
Task might be run for a single set of input values or we can generate multiple sets, that will be called "states". If we want to run our `Task` multiple times we have to provide an input that is an iterable and specify the way we want to map values of the inputs to the specific states. In order to do it, we set so-called `splitter`.
1717

notebooks/4_intro_workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ kernelspec:
1111
name: python3
1212
---
1313

14-
# 4. Workflow
14+
# Workflow
1515

1616
```{code-cell}
1717
---

notebooks/5_intro_shelltask.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ kernelspec:
1111
name: python3
1212
---
1313

14-
# 5. ShellCommandTask
14+
# ShellCommandTask
1515

1616
```{code-cell}
1717
---

0 commit comments

Comments
 (0)