10
10
11
11
import sys
12
12
import os
13
+ from packaging .version import Version
13
14
from collections import OrderedDict
14
15
from copy import deepcopy
15
16
16
17
from nipype import __version__ as nipype_ver
17
18
from nipype .pipeline import engine as pe
18
19
from nipype .interfaces import utility as niu
19
- from nilearn import __version__ as nilearn_ver
20
20
21
21
from niworkflows .engine .workflows import LiterateWorkflow as Workflow
22
22
from niworkflows .interfaces .bids import (
@@ -340,12 +340,9 @@ def init_single_subject_wf(
340
340
""" .format (dmriprep_ver = __version__ , nipype_ver = nipype_ver )
341
341
workflow .__postdesc__ = """
342
342
343
- Many internal operations of *dMRIPrep* use
344
- *Nilearn* {nilearn_ver} [@nilearn, RRID:SCR_001362],
345
- mostly within the diffusion MRI processing workflow.
346
343
For more details of the pipeline, see [the section corresponding
347
344
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 \
349
346
"dMRIPrep's documentation").
350
347
351
348
@@ -359,7 +356,7 @@ def init_single_subject_wf(
359
356
360
357
### References
361
358
362
- """ .format (nilearn_ver = nilearn_ver )
359
+ """ .format (dmriprep_ver = Version ( __version__ ). public )
363
360
364
361
# Filter out standard spaces to a separate dict
365
362
std_spaces = OrderedDict ([
0 commit comments