Skip to content

Commit 42b5ce2

Browse files
committed
Fixed permissions and some tests.
1 parent a3564c5 commit 42b5ce2

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

nipype/interfaces/afni/preprocess.py

100755100644
File mode changed.

nipype/interfaces/camino2trackvis/convert.py

100755100644
File mode changed.

nipype/interfaces/fsl/epi.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
<http://www.fmrib.ox.ac.uk/fsl/index.html>`_ command line tools. This
55
was written to work with FSL version 5.0.4.
66
7-
Examples
8-
--------
9-
See the docstrings of the individual classes for examples.
10-
7+
Change directory to provide relative paths for doctests
8+
>>> import os
9+
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
10+
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
11+
>>> os.chdir(datadir)
1112
"""
1213

1314
import os

nipype/interfaces/fsl/model.py

100755100644
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,9 +1663,10 @@ def _list_outputs(self):
16631663
class GLMInputSpec(FSLCommandInputSpec):
16641664
in_file = File(exists=True, argstr='-i %s', mandatory=True, position=1,
16651665
desc='input file name (text matrix or 3D/4D image file)')
1666-
out_file = File(argstr='-o %s', genfile=True, position=3,
1666+
out_file = File(name_template="%s_glm.txt", argstr='-o %s', position=3,
16671667
desc=('filename for GLM parameter estimates'
1668-
+ ' (GLM betas)'))
1668+
+ ' (GLM betas)'),
1669+
name_source="in_file", keep_extension=True)
16691670
design = File(exists=True, argstr='-d %s', mandatory=True, position=2,
16701671
desc=('file name of the GLM design matrix (text time'
16711672
+ ' courses for temporal regression or an image'
@@ -1761,7 +1762,7 @@ class GLM(FSLCommand):
17611762
>>> import nipype.interfaces.fsl as fsl
17621763
>>> glm = fsl.GLM(in_file='functional.nii', design='maps.nii')
17631764
>>> glm.cmdline
1764-
'fsl_glm -d maps.nii -i functional.nii -o functional_glm.txt'
1765+
'fsl_glm -i functional.nii -d maps.nii -o functional_glm.txt'
17651766
17661767
"""
17671768
_cmd = 'fsl_glm'
@@ -1813,7 +1814,3 @@ def _list_outputs(self):
18131814

18141815
return outputs
18151816

1816-
def _gen_filename(self, name):
1817-
if name in ['out_file']:
1818-
return self._gen_fname(self.inputs.in_file, suffix='_glm')
1819-
return None

0 commit comments

Comments
 (0)