Skip to content

Commit

Permalink
FIX repo2data
Browse files Browse the repository at this point in the history
- remove jupyter book build time limit
- use repo2data directly to source data in the jupyterbook
- adjust README.md accordingly
- remove `make book` target
  • Loading branch information
htwangtw committed May 15, 2023
1 parent 5fc1f8b commit 7869683
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data:
@echo "Download input data to build the report"
if [ ! -d inputs/denoise-metrics ]; then wget -c -O denoise-metrics.tar.gz "https://zenodo.org/record/7764979/files/denoise-metrics.tar.gz?download=1" && mkdir -p inputs && tar xf denoise-metrics.tar.gz -C inputs && rm denoise-metrics.tar.gz; fi

book: inputs/denoise-metrics
book:
jb build content --all

figures: inputs/denoise-metrics
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ virtualenv env
source env/bin/activate
pip install -r binder/requirements.txt
pip install .
make data
make book
```

Expand Down
2 changes: 1 addition & 1 deletion content/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ only_build_toc_files: true
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: force
timeout: 600
timeout: -1

# Define the name of the latex output file for PDF builds
latex:
Expand Down
2 changes: 1 addition & 1 deletion content/research_report/results-atlas.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ from fmriprep_denoise.visualization import figures, utils
import ipywidgets as widgets
from ipywidgets import interactive, interact
path_root = utils.get_data_root() / "denoise-metrics"
path_root = utils.repo2data_path() / "denoise-metrics"
```

# Results: atlas level
Expand Down
2 changes: 1 addition & 1 deletion content/research_report/results-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import ipywidgets as widgets
from ipywidgets import interactive
from fmriprep_denoise.visualization import utils
path_root = utils.get_data_root() / "denoise-metrics"
path_root = utils.repo2data_path() / "denoise-metrics"
strategy_order = list(utils.GRID_LOCATION.values())
group_order = {
"ds000228": ["adult", "child"],
Expand Down
2 changes: 1 addition & 1 deletion content/supplementary_materials/ohbm2022abstract.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ warnings.filterwarnings('ignore')
from fmriprep_denoise.visualization import figures, utils
from myst_nb import glue
path_root = utils.get_data_root() / "denoise-metrics"
path_root = utils.repo2data_path() / "denoise-metrics"
# Load metric data
dataset = 'ds000228'
Expand Down

0 comments on commit 7869683

Please sign in to comment.