Skip to content

Commit 7c33d27

Browse files
authored
Merge pull request #83 from oesteban/maint/overhaul
PIN: Update dependencies
2 parents 7e194c3 + 8d70c5d commit 7c33d27

File tree

2 files changed

+18
-26
lines changed

2 files changed

+18
-26
lines changed

dmriprep/cli/run.py

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ def check_deps(workflow):
3232

3333

3434
def get_parser():
35-
"""Build parser object"""
36-
from smriprep.cli.utils import ParseTemplates, output_space as _output_space
37-
from templateflow.api import templates
35+
"""Build parser object."""
36+
from niworkflows.utils.spaces import Reference, SpatialReferences, OutputReferencesAction
3837
from packaging.version import Version
3938
from ..__about__ import __version__
40-
from ..config import NONSTANDARD_REFERENCES
4139
from .version import check_latest, is_flagged
4240

4341
verstr = 'dmriprep v{}'.format(__version__)
@@ -104,26 +102,24 @@ def get_parser():
104102
'--longitudinal', action='store_true',
105103
help='treat dataset as longitudinal - may increase runtime')
106104
g_conf.add_argument(
107-
'--output-spaces', nargs='+', action=ParseTemplates,
105+
'--output-spaces', nargs='*', action=OutputReferencesAction, default=SpatialReferences(),
108106
help="""\
109107
Standard and non-standard spaces to resample anatomical and functional images to. \
110108
Standard spaces may be specified by the form \
111-
``<TEMPLATE>[:res-<resolution>][:cohort-<label>][...]``, where ``<TEMPLATE>`` is \
112-
a keyword (valid keywords: %s) or path pointing to a user-supplied template, and \
113-
may be followed by optional, colon-separated parameters. \
114-
Non-standard spaces (valid keywords: %s) imply specific orientations and sampling \
115-
grids. \
109+
``<SPACE>[:cohort-<label>][:res-<resolution>][...]``, where ``<SPACE>`` is \
110+
a keyword designating a spatial reference, and may be followed by optional, \
111+
colon-separated parameters. \
112+
Non-standard spaces imply specific orientations and sampling grids. \
116113
Important to note, the ``res-*`` modifier does not define the resolution used for \
117-
the spatial normalization.
118-
For further details, please check out \
119-
https://dmriprep.readthedocs.io/en/%s/spaces.html""" % (
120-
', '.join('"%s"' % s for s in templates()), ', '.join(NONSTANDARD_REFERENCES),
121-
currentv.base_version if is_release else 'latest'))
114+
the spatial normalization. To generate no DWI outputs, use this option without specifying \
115+
any spatial references. For further details, please check out \
116+
https://www.nipreps.org/dmriprep/en/%s/spaces.html""" % (currentv.base_version
117+
if is_release else 'latest'))
122118

123119
# ANTs options
124120
g_ants = parser.add_argument_group('Specific options for ANTs registrations')
125121
g_ants.add_argument(
126-
'--skull-strip-template', action='store', default='OASIS30ANTs', type=_output_space,
122+
'--skull-strip-template', default='OASIS30ANTs', type=Reference.from_string,
127123
help='select a template for skull-stripping with antsBrainExtraction')
128124
g_ants.add_argument('--skull-strip-fixed-seed', action='store_true',
129125
help='do not use a random seed for skull-stripping - will ensure '

setup.cfg

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ python_requires = >=3.5
2222
install_requires =
2323
dipy >=1.0.0
2424
indexed_gzip >=0.8.8
25-
nibabel ~= 3.0.0rc1
26-
nipype ~= 1.3.1
27-
niworkflows ~= 1.1.3
25+
nibabel ~= 3.0
26+
nipype ~= 1.4.0
27+
niworkflows ~= 1.1.9
2828
numpy
29-
pybids ~= 0.9.2
29+
pybids ~= 0.9.4
3030
pyyaml
31-
smriprep ~= 0.4.1
32-
templateflow ~= 0.4.2rc1
31+
smriprep ~= 0.5.2
32+
templateflow ~= 0.4.2
3333
test_requires =
3434
codecov
3535
coverage
@@ -102,10 +102,6 @@ exclude=
102102
docs/
103103
select = C,E,F,W,B,B950
104104
ignore = N802,N806,W504,E203
105-
putty-ignore =
106-
*/__init__.py : +F401
107-
docs/conf.py : +E265
108-
/^\s*\.\. _.*?: http/ : +E501
109105

110106
[tool:pytest]
111107
norecursedirs = .* _*

0 commit comments

Comments
 (0)