Skip to content

Commit f791fc1

Browse files
author
Fabio Bernardoni
committed
* edited preprocess according to nipype team suggestions
* added applyVDM interface to __init__.py file
1 parent 2e4bc83 commit f791fc1

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

nipype/interfaces/spm/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"""SPM is a software package for the analysis of brain imaging data sequences."""
55
from .base import Info, SPMCommand, logger, no_spm, scans_for_fname, scans_for_fnames
66
from .preprocess import (
7+
ApplyVDM,
78
FieldMap,
89
SliceTiming,
910
Realign,

nipype/interfaces/spm/preprocess.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040

4141
class FieldMapInputSpec(SPMCommandInputSpec):
4242

43+
jobtype = traits.Enum(
44+
"calculatevdm",
45+
usedefault=True,
46+
deprecated="1.9.0", # Two minor releases in the future
47+
desc="Must be 'calculatevdm'; to apply VDM, use the ApplyVDM interface.",
48+
)
49+
4350
phase_file = File(
4451
mandatory=True,
4552
exists=True,
@@ -251,9 +258,7 @@ def _list_outputs(self):
251258
class ApplyVDMInputSpec(SPMCommandInputSpec):
252259

253260
in_files = InputMultiObject(
254-
traits.Either(
255-
ImageFileSPM(exists=True), traits.List(ImageFileSPM(exists=True))
256-
),
261+
ImageFileSPM(exists=True),
257262
field="data.scans",
258263
mandatory=True,
259264
copyfile=True,
@@ -262,7 +267,7 @@ class ApplyVDMInputSpec(SPMCommandInputSpec):
262267
vdmfile = File(
263268
field="data.vdmfile",
264269
desc="Voxel displacement map to use",
265-
# mandatory=True,
270+
mandatory=True,
266271
copyfile=True,
267272
)
268273
distortion_direction = traits.Int(
@@ -279,13 +284,8 @@ class ApplyVDMInputSpec(SPMCommandInputSpec):
279284
usedefault=True,
280285
desc="determines which images to apply vdm to",
281286
)
282-
interpolation = traits.Int(
283-
4,
284-
field="roptions.rinterp",
285-
desc="phase encode direction input data have been acquired with",
286-
usedefault=True,
287-
)
288-
reslice_interp = traits.Range(
287+
interpolation = traits.Range(
288+
value=4,
289289
low=0,
290290
high=7,
291291
field="roptions.rinterp",

0 commit comments

Comments
 (0)