Merged
Changes from 2 commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
Original file line numberDiff line numberDiff line change
Expand Up@@ -259,10 +259,10 @@ class ApplyVDMInputSpec(SPMCommandInputSpec):

in_files = InputMultiObject(
ImageFileSPM(exists=True),
field="data.scans",
field='data.scans',
mandatory=True,
copyfile=True,
desc="list of filenames to apply the vdm to",
desc='list of filenames to apply the vdm to',
)
vdmfile = File(
field="data.vdmfile",
Expand DownExpand Up@@ -337,7 +337,11 @@ class ApplyVDM(SPMCommand):
def _format_arg(self, opt, spec, val):
"""Convert input to appropriate format for spm"""

if opt in ["in_files", "vdmfile"]:
if opt == 'in_files':
return scans_for_fnames(
ensure_list(val), keep4d=False, separate_sessions=False
)
if opt == 'vdmfile':
return scans_for_fname(ensure_list(val))
return super(ApplyVDM, self)._format_arg(opt, spec, val)

Expand Down