Skip to content

Commit c016a7a

Browse files
committed
Merge remote-tracking branch 'upstream/master' into rel/1.1.1
2 parents 9dbcf97 + 715ad0a commit c016a7a

File tree

8 files changed

+20
-47
lines changed

8 files changed

+20
-47
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ before_install:
5353
export FSLOUTPUTTYPE=NIFTI_GZ;
5454
fi;
5555

56+
- travis_retry pip install --upgrade pytest>=3.4 # Work around pip failure
5657
- travis_retry pip install -r requirements.txt
5758
- travis_retry pip install grabbit==0.1.2
5859
- travis_retry git clone https://github.com/INCF/pybids.git ${HOME}/pybids &&

Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# rsync -e ssh nipype-0.1-py2.5.egg cburns,[email protected]:/home/frs/project/n/ni/nipy/nipype/nipype-0.1/
44

55
PYTHON ?= python
6-
NOSETESTS=`which nosetests`
76

87
.PHONY: zipdoc sdist egg upload_to_pypi trailing-spaces clean-pyc clean-so clean-build clean-ctags clean in inplace test-code test-coverage test html specs check-before-commit check gen-base-dockerfile gen-main-dockerfile gen-dockerfiles
98

Vagrantfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ echo "export PATH=$HOME/miniconda3/bin:\\$PATH" >> .bashrc
2727
2828
# install nipype dependencies
2929
$HOME/miniconda3/bin/conda update --yes conda
30-
$HOME/miniconda3/bin/conda install --yes pip scipy nose networkx lxml future simplejson
30+
$HOME/miniconda3/bin/conda install --yes pip scipy networkx lxml future simplejson
3131
$HOME/miniconda3/bin/conda install --yes python-dateutil jupyter matplotlib
3232
$HOME/miniconda3/bin/pip install nibabel
3333
$HOME/miniconda3/bin/pip install prov

doc/links_names.txt

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
.. _doctest-mode: http://www.cis.upenn.edu/~edloper/projects/doctestmode/
5757
.. _bazaar: http://bazaar-vcs.org/
5858
.. _subversion: http://subversion.tigris.org/
59-
.. _nose: http://nose.readthedocs.io/en/latest/
6059
.. _`python coverage tester`: http://nedbatchelder.com/code/modules/coverage.html
6160

6261
.. Other python projects

nipype/interfaces/fsl/epi.py

+10-18
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,12 @@ class TOPUPInputSpec(FSLCommandInputSpec):
199199
# TODO: the following traits admit values separated by commas, one value
200200
# per registration level inside topup.
201201
warp_res = traits.Float(
202-
10.0, usedefault=True,
203202
argstr='--warpres=%f',
204203
desc=('(approximate) resolution (in mm) of warp '
205-
'basis for the different sub-sampling levels'
206-
'.'))
207-
subsamp = traits.Int(1, usedefault=True,
208-
argstr='--subsamp=%d', desc='sub-sampling scheme')
204+
'basis for the different sub-sampling levels'))
205+
subsamp = traits.Int(argstr='--subsamp=%d',
206+
desc='sub-sampling scheme')
209207
fwhm = traits.Float(
210-
8.0,
211-
usedefault=True,
212208
argstr='--fwhm=%f',
213209
desc='FWHM (in mm) of gaussian smoothing kernel')
214210
config = traits.String(
@@ -218,13 +214,12 @@ class TOPUPInputSpec(FSLCommandInputSpec):
218214
desc=('Name of config file specifying command line '
219215
'arguments'))
220216
max_iter = traits.Int(
221-
5, usedefault=True,
222-
argstr='--miter=%d', desc='max # of non-linear iterations')
217+
argstr='--miter=%d',
218+
desc='max # of non-linear iterations')
223219
reg_lambda = traits.Float(
224-
1.0, usedefault=True,
225-
argstr='--miter=%0.f',
226-
desc=('lambda weighting value of the '
227-
'regularisation term'))
220+
argstr='--lambda=%0.f',
221+
desc=('Weight of regularisation, default '
222+
'depending on --ssqlambda and --regmod switches.'))
228223
ssqlambda = traits.Enum(
229224
1,
230225
0,
@@ -259,7 +254,6 @@ class TOPUPInputSpec(FSLCommandInputSpec):
259254
desc=('Minimisation method 0=Levenberg-Marquardt, '
260255
'1=Scaled Conjugate Gradient'))
261256
splineorder = traits.Int(
262-
3, usedefault=True,
263257
argstr='--splineorder=%d',
264258
desc=('order of spline, 2->Qadratic spline, '
265259
'3->Cubic spline'))
@@ -321,11 +315,9 @@ class TOPUP(FSLCommand):
321315
>>> topup.inputs.output_type = "NIFTI_GZ"
322316
>>> topup.cmdline # doctest: +ELLIPSIS
323317
'topup --config=b02b0.cnf --datain=topup_encoding.txt \
324-
--fwhm=8.000000 --imain=b0_b0rev.nii --miter=5 \
325-
--out=b0_b0rev_base --iout=b0_b0rev_corrected.nii.gz \
318+
--imain=b0_b0rev.nii --out=b0_b0rev_base --iout=b0_b0rev_corrected.nii.gz \
326319
--fout=b0_b0rev_field.nii.gz --jacout=jac --logout=b0_b0rev_topup.log \
327-
--rbmout=xfm --dfout=warpfield --miter=1 --splineorder=3 --subsamp=1 \
328-
--warpres=10.000000'
320+
--rbmout=xfm --dfout=warpfield'
329321
>>> res = topup.run() # doctest: +SKIP
330322
331323
"""

nipype/interfaces/fsl/tests/test_auto_TOPUP.py

+6-24
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,13 @@ def test_TOPUP_inputs():
2626
usedefault=True,
2727
),
2828
estmov=dict(argstr='--estmov=%d', ),
29-
fwhm=dict(
30-
argstr='--fwhm=%f',
31-
usedefault=True,
32-
),
29+
fwhm=dict(argstr='--fwhm=%f', ),
3330
in_file=dict(
3431
argstr='--imain=%s',
3532
mandatory=True,
3633
),
3734
interp=dict(argstr='--interp=%s', ),
38-
max_iter=dict(
39-
argstr='--miter=%d',
40-
usedefault=True,
41-
),
35+
max_iter=dict(argstr='--miter=%d', ),
4236
minmet=dict(argstr='--minmet=%d', ),
4337
numprec=dict(argstr='--numprec=%s', ),
4438
out_base=dict(
@@ -87,26 +81,14 @@ def test_TOPUP_inputs():
8781
requires=['encoding_direction'],
8882
xor=['encoding_file'],
8983
),
90-
reg_lambda=dict(
91-
argstr='--miter=%0.f',
92-
usedefault=True,
93-
),
84+
reg_lambda=dict(argstr='--lambda=%0.f', ),
9485
regmod=dict(argstr='--regmod=%s', ),
9586
regrid=dict(argstr='--regrid=%d', ),
9687
scale=dict(argstr='--scale=%d', ),
97-
splineorder=dict(
98-
argstr='--splineorder=%d',
99-
usedefault=True,
100-
),
88+
splineorder=dict(argstr='--splineorder=%d', ),
10189
ssqlambda=dict(argstr='--ssqlambda=%d', ),
102-
subsamp=dict(
103-
argstr='--subsamp=%d',
104-
usedefault=True,
105-
),
106-
warp_res=dict(
107-
argstr='--warpres=%f',
108-
usedefault=True,
109-
),
90+
subsamp=dict(argstr='--subsamp=%d', ),
91+
warp_res=dict(argstr='--warpres=%f', ),
11092
)
11193
inputs = TOPUP.input_spec()
11294

nipype/pipeline/plugins/tests/test_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_scipy_sparse():
1616

1717
'''
1818
Can use the following code to test that a mapnode crash continues successfully
19-
Need to put this into a nose-test with a timeout
19+
Need to put this into a unit-test with a timeout
2020
2121
import nipype.interfaces.utility as niu
2222
import nipype.pipeline.engine as pe

nipype/pipeline/plugins/tests/test_tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_report_crash():
3838

3939
'''
4040
Can use the following code to test that a mapnode crash continues successfully
41-
Need to put this into a nose-test with a timeout
41+
Need to put this into a unit-test with a timeout
4242
4343
import nipype.interfaces.utility as niu
4444
import nipype.pipeline.engine as pe

0 commit comments

Comments
 (0)