Skip to content

Commit dee07de

Browse files
committed
Merge remote-tracking branch 'upstream/master' into fix/openfmri
* upstream/master: tst: generate melodic commandline Readout time got truncated in automatic encfile generation doc: fix link to 0.9.2 tar.gz release
2 parents 34ef5a6 + 2db46c1 commit dee07de

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

doc/users/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Download
1010
--------
1111

1212
Release 0.9.2: [`zip <https://github.com/nipy/nipype/archive/0.9.2.zip>`__ `tar.gz
13-
<https://github.com/nipy/nipype/archive/0.9.1.tar.gz>`__]
13+
<https://github.com/nipy/nipype/archive/0.9.2.tar.gz>`__]
1414

1515
Development: [`zip <http://github.com/nipy/nipype/zipball/master>`__ `tar.gz
1616
<http://github.com/nipy/nipype/tarball/master>`__]

nipype/interfaces/fsl/epi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def _generate_encfile(self):
252252
line = [float(val[0] == encdir[0]) * direction
253253
for val in ['x', 'y', 'z']] + [durations[idx]]
254254
lines.append(line)
255-
np.savetxt(out_file, np.array(lines), fmt='%d %d %d %.3f')
255+
np.savetxt(out_file, np.array(lines), fmt='%d %d %d %.8f')
256256
return out_file
257257

258258
def _overload_extension(self, value, name=None):
@@ -408,11 +408,11 @@ def _format_arg(self, name, spec, value):
408408
if name == 'in_topup_fieldcoef':
409409
return spec.argstr % value.split('_fieldcoef')[0]
410410
return super(Eddy, self)._format_arg(name, spec, value)
411-
411+
412412
def _parse_inputs( self, skip=None ):
413413
if skip is None:
414414
skip = []
415-
415+
416416
if not isdefined(self.inputs.out_base ):
417417
self.inputs.out_base = os.path.abspath( './eddy_corrected' )
418418
return super(Eddy, self)._parse_inputs(skip=skip)

nipype/interfaces/fsl/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,8 @@ class MELODIC(FSLCommand):
13761376
>>> melodic_setup.inputs.s_des = 'subjectDesign.mat'
13771377
>>> melodic_setup.inputs.s_con = 'subjectDesign.con'
13781378
>>> melodic_setup.inputs.out_dir = 'groupICA.out'
1379+
>>> melodic_setup.cmdline
1380+
'melodic -i functional.nii,functional2.nii,functional3.nii -a tica --bgthreshold=10.000000 --mmthresh=0.500000 --nobet -o groupICA.out --Ostats --Scon=subjectDesign.con --Sdes=subjectDesign.mat --Tcon=timeDesign.con --Tdes=timeDesign.mat --tr=1.500000'
13791381
>>> melodic_setup.run() # doctest: +SKIP
13801382
13811383

0 commit comments

Comments
 (0)