Skip to content

Commit b3c28a4

Browse files
committed
fix: nbsphinx dislikes output of templateflow.api.get
I've figured that my computer has the ``MNI152NLin2009cAsym`` present but CircleCI doesn't. Now my theory is that sphinx trips with the progress bar written out by the templateflow downloader.
1 parent 4c939a7 commit b3c28a4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ jobs:
384384
source /tmp/venv/bin/activate
385385
python -m hatch version | tail -n1 | xargs
386386
BRANCH=$( echo $CIRCLE_BRANCH | sed 's+/+_+g' )
387+
python -c "from templateflow.api import get; get('MNI152NLin2009cAsym', desc='brain', resolution=1, suffix='T1w')"
387388
make -C docs SPHINXOPTS="-W -v" BUILDDIR="$HOME/docs" OUTDIR=${CIRCLE_TAG:-$BRANCH} html
388389
- store_artifacts:
389390
path: ~/docs/

docs/notebooks/SDC - Theory and physics.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
"metadata": {},
143143
"outputs": [],
144144
"source": [
145-
"data = np.asanyarray(nb.load(get(\"MNI152NLin2009cAsym\", desc=\"brain\", resolution=1, suffix=\"T1w\")).dataobj)"
145+
"data = np.asanyarray(nb.load(get(\"MNI152NLin2009cAsym\", desc=\"brain\", resolution=1, suffix=\"T1w\")).dataobj);"
146146
]
147147
},
148148
{

0 commit comments

Comments
 (0)