Skip to content

Commit 6689c1d

Browse files
committed
Merge remote-tracking branch 'upstream/master' into nipypeclick
* upstream/master: undo matplotlib change. move badge to codecov disable matplotlib extension to test doc building. merge upstream master fix: retroicor - cleaned up interface, vim presets
2 parents a6697a8 + 43ac390 commit 6689c1d

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

doc/_templates/indexsidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h3>{{ _('Links') }}</h3>
66
<li>Code: <a href="http://github.com/nipy/nipype">Github</a> · <a href="http://github.com/nipy/nipype/issues">Bugs-Requests</a></li>
77
<li>Forum: <a href="http://neurostars.org/t/nipype">User</a> · <a href="http://projects.scipy.org/mailman/listinfo/nipy-devel">Developer</a></li>
88
<li><a href="about.html#funding">Funding</a> · <a href="http://nipy.org/software/license/index.html"><img src="https://img.shields.io/pypi/l/nipype.svg" alt="License"></a></li>
9-
<li><a href="https://travis-ci.org/nipy/nipype"><img src="https://travis-ci.org/nipy/nipype.png?branch=master" alt="travis"></a> · <a href='https://coveralls.io/r/nipy/nipype'><img src='https://coveralls.io/repos/nipy/nipype/badge.png' alt='Coverage Status' /></a></li>
9+
<li><a href="https://travis-ci.org/nipy/nipype"><img src="https://travis-ci.org/nipy/nipype.png?branch=master" alt="travis"></a> · <a href='https://codecov.io/gh/nipy/nipype'><img src='https://codecov.io/gh/nipy/nipype/branch/master/graph/badge.svg' alt='Coverage Status' /></a></li>
1010
<a href='https://pypi.python.org/pypi/nipype/'><img src='https://img.shields.io/pypi/pyversions/nipype.svg' alt='Python Versions' /></a></li>
1111
</ul>
1212

nipype/algorithms/tests/test_auto_FramewiseDisplacement.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def test_FramewiseDisplacement_inputs():
1111
ignore_exception=dict(nohash=True,
1212
usedefault=True,
1313
),
14-
in_plots=dict(),
14+
in_plots=dict(mandatory=True,
15+
),
1516
normalize=dict(usedefault=True,
1617
),
1718
out_figure=dict(usedefault=True,

nipype/algorithms/tests/test_auto_TSNR.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from ...testing import assert_equal
3-
from ..misc import TSNR
3+
from ..confounds import TSNR
44

55

66
def test_TSNR_inputs():

nipype/interfaces/afni/preprocess.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
3-
# vi: set ft = python sts = 4 ts = 4 sw = 4 et:
3+
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
"""Afni preprocessing interfaces
55
66
Change directory to provide relative paths for doctests
@@ -2384,7 +2384,9 @@ class RetroicorInputSpec(AFNICommandInputSpec):
23842384
mandatory=True,
23852385
exists=True,
23862386
copyfile=False)
2387-
out_file = File(desc='output image file name', argstr='-prefix %s', mandatory=True, position=1)
2387+
out_file = File(name_template='%s_retroicor', name_source=['in_file'],
2388+
desc='output image file name',
2389+
argstr='-prefix %s', position=1)
23882390
card = File(desc='1D cardiac data file for cardiac correction',
23892391
argstr='-card %s',
23902392
position=-2,
@@ -2438,6 +2440,7 @@ class Retroicor(AFNICommand):
24382440
>>> ret.inputs.in_file = 'functional.nii'
24392441
>>> ret.inputs.card = 'mask.1D'
24402442
>>> ret.inputs.resp = 'resp.1D'
2443+
>>> ret.inputs.outputtype = 'NIFTI'
24412444
>>> res = ret.run() # doctest: +SKIP
24422445
"""
24432446

@@ -2446,6 +2449,13 @@ class Retroicor(AFNICommand):
24462449
output_spec = AFNICommandOutputSpec
24472450

24482451

2452+
def _format_arg(self, name, trait_spec, value):
2453+
if name == 'in_file':
2454+
if not isdefined(self.inputs.card) and not isdefined(self.inputs.resp):
2455+
return None
2456+
return super(Retroicor, self)._format_arg(name, trait_spec, value)
2457+
2458+
24492459
class AFNItoNIFTIInputSpec(AFNICommandInputSpec):
24502460
in_file = File(desc='input file to 3dAFNItoNIFTI',
24512461
argstr='%s',

nipype/interfaces/afni/tests/test_auto_Retroicor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ def test_Retroicor_inputs():
2828
position=-5,
2929
),
3030
out_file=dict(argstr='-prefix %s',
31-
mandatory=True,
31+
name_source=[u'in_file'],
32+
name_template='%s_retroicor',
3233
position=1,
3334
),
3435
outputtype=dict(),

0 commit comments

Comments
 (0)