Skip to content

Commit 0b7bbe7

Browse files
committed
fix: clean up nilearn
1 parent aa1040c commit 0b7bbe7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

dmriprep/workflows/base.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
import sys
1212
import os
13+
from packaging.version import Version
1314
from collections import OrderedDict
1415
from copy import deepcopy
1516

1617
from nipype import __version__ as nipype_ver
1718
from nipype.pipeline import engine as pe
1819
from nipype.interfaces import utility as niu
19-
from nilearn import __version__ as nilearn_ver
2020

2121
from niworkflows.engine.workflows import LiterateWorkflow as Workflow
2222
from niworkflows.interfaces.bids import (
@@ -340,12 +340,9 @@ def init_single_subject_wf(
340340
""".format(dmriprep_ver=__version__, nipype_ver=nipype_ver)
341341
workflow.__postdesc__ = """
342342
343-
Many internal operations of *dMRIPrep* use
344-
*Nilearn* {nilearn_ver} [@nilearn, RRID:SCR_001362],
345-
mostly within the diffusion MRI processing workflow.
346343
For more details of the pipeline, see [the section corresponding
347344
to workflows in *dMRIPrep*'s documentation]\
348-
(https://dmriprep.readthedocs.io/en/latest/workflows.html \
345+
(https://nipreps.github.io/dmriprep/{dmriprep_ver}/workflows.html \
349346
"dMRIPrep's documentation").
350347
351348
@@ -359,7 +356,7 @@ def init_single_subject_wf(
359356
360357
### References
361358
362-
""".format(nilearn_ver=nilearn_ver)
359+
""".format(dmriprep_ver=Version(__version__).public)
363360

364361
# Filter out standard spaces to a separate dict
365362
std_spaces = OrderedDict([

0 commit comments

Comments
 (0)