Skip to content

Commit 2ebe1dc

Browse files
committed
Merge branch 'master' of https://github.com/nipy/nipype.git
2 parents 8100ddc + a9d0e0f commit 2ebe1dc

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
.project
1313
.settings
1414
.pydevproject
15+
.idea/

nipype/interfaces/fsl/preprocess.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ class FUGUEInputSpec(FSLCommandInputSpec):
11971197
desc='apply Fourier (sinusoidal) fitting of order N')
11981198
pava = traits.Bool(argstr='--pava',
11991199
desc='apply monotonic enforcement via PAVA')
1200-
despike_theshold = traits.Float(argstr='--despikethreshold=%s',
1200+
despike_threshold = traits.Float(argstr='--despikethreshold=%s',
12011201
desc='specify the threshold for de-spiking (default=3.0)')
12021202
unwarp_direction = traits.Enum('x', 'y', 'z', 'x-', 'y-', 'z-',
12031203
argstr='--unwarpdir=%s',
@@ -1287,13 +1287,13 @@ def _parse_inputs(self, skip=None):
12871287
self.inputs.shift_out_file = self._gen_fname(
12881288
self.inputs.in_file, suffix='_vsm')
12891289

1290-
if self.inputs.forward_warping or not isdefined(self.inputs.in_file):
1291-
skip += ['unwarped_file']
1290+
if not isdefined(self.inputs.in_file):
1291+
skip += ['unwarped_file', 'warped_file']
1292+
elif self.inputs.forward_warping:
12921293
if not isdefined(self.inputs.warped_file):
12931294
self.inputs.warped_file = self._gen_fname(
12941295
self.inputs.in_file, suffix='_warped')
1295-
if not self.inputs.forward_warping or not isdefined(self.inputs.in_file):
1296-
skip += ['warped_file']
1296+
elif not self.inputs.forward_warping:
12971297
if not isdefined(self.inputs.unwarped_file):
12981298
self.inputs.unwarped_file = self._gen_fname(
12991299
self.inputs.in_file, suffix='_unwarped')

nipype/interfaces/fsl/tests/test_auto_FUGUE.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ def test_FUGUE_inputs():
6161
nohash=True,
6262
),
6363
output_type=dict(),
64-
despike_theshold=dict(argstr='--despikethreshold=%s',
65-
),
6664
icorr=dict(requires=['shift_in_file'],
6765
argstr='--icorr',
6866
),
6967
fmap_in_file=dict(argstr='--loadfmap=%s',
7068
),
69+
despike_threshold=dict(argstr='--despikethreshold=%s',
70+
),
7171
unwarp_direction=dict(argstr='--unwarpdir=%s',
7272
),
7373
fmap_out_file=dict(hash_files=False,

0 commit comments

Comments
 (0)